Principals created by
Tomcat's standard Realm implementations.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: anObject containing the value of the attribute, or
null if the attribute does not exist, or if
null has been specified as the attribute's namea name)String specifying the name of the attributeReturns the value of the named attribute as an |
| public Enumeration | Returns: anEnumeration of strings containing the names of
the Principal's attributesReturns an |
| public GSSCredential | |
| public Principal | |
| public void |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Returns the value of the named attribute as an Only the servlet container may set attributes to make available custom information about a Principal or the user it represents.
The purpose of the method is to implement read only access to attributes
which may be stored in the
As using this method from application code will make it non portable to
other EE compliant containers, it is advised this should never be used
as an object storage facility tied to the
| |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Returns an
| |
| getGssCredential | back to summary |
|---|---|
public GSSCredential getGssCredential()
| |
| getUserPrincipal | back to summary |
|---|---|
public Principal getUserPrincipal()
| |
| logout | back to summary |
|---|---|
| public void logout() throws Exception Calls logout, if necessary, on any associated JAASLoginContext and/or GSSContext. May in the future be extended to cover other logout requirements.
| |