org.glassfish.grizzly.http.server
Class GrizzlyPrincipal

java.lang.Object
  extended by org.glassfish.grizzly.http.server.GrizzlyPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public class GrizzlyPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

Generic implementation of java.security.Principal that is used to represent principals authenticated at the protocol handler level.

Version:
$Revision: 1.2 $ $Date: 2005/12/08 01:28:34 $
Author:
Remy Maucherat
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          The username of the user represented by this Principal.
 
Constructor Summary
GrizzlyPrincipal(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String toString()
          Return a String representation of this object, which exposes only information that should be public.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Field Detail

name

protected java.lang.String name
The username of the user represented by this Principal.

Constructor Detail

GrizzlyPrincipal

public GrizzlyPrincipal(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

toString

public java.lang.String toString()
Return a String representation of this object, which exposes only information that should be public.

Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object


Copyright © 2011 Oracle Corpration. All Rights Reserved.