Package org.apache.catalina
Interface TomcatPrincipal
-
- All Superinterfaces:
java.security.Principal
- All Known Implementing Classes:
GenericPrincipal,UserDatabaseRealm.UserDatabasePrincipal
public interface TomcatPrincipal extends java.security.PrincipalDefines additional methods implemented byPrincipals created by Tomcat's standardRealmimplementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.ietf.jgss.GSSCredentialgetGssCredential()java.security.PrincipalgetUserPrincipal()voidlogout()Calls logout, if necessary, on any associated JAASLoginContext.
-
-
-
Method Detail
-
getUserPrincipal
java.security.Principal getUserPrincipal()
- Returns:
- The authenticated Principal to be exposed to applications.
-
getGssCredential
org.ietf.jgss.GSSCredential getGssCredential()
- Returns:
- The user's delegated credentials.
-
logout
void logout() throws java.lang.ExceptionCalls logout, if necessary, on any associated JAASLoginContext. May in the future be extended to cover other logout requirements.- Throws:
java.lang.Exception- If something goes wrong with the logout. Uses Exception to allow for future expansion of this method to cover other logout mechanisms that might throw a different exception to LoginContext
-
-