Class GrizzlyPrincipal
- java.lang.Object
-
- 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.SerializableGeneric 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
Fields Modifier and Type Field Description protected java.lang.StringnameThe username of the user represented by this Principal.
-
Constructor Summary
Constructors Constructor Description GrizzlyPrincipal(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.StringtoString()Return a String representation of this object, which exposes only information that should be public.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.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:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
-