public class JAASSecurityAuthenticator extends SecurityAuthenticatorSupport
SecurityAuthenticator
implementation.SecurityAuthenticatorSupport.HttpPrincipalCallbackHandler
Constructor and Description |
---|
JAASSecurityAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Subject |
login(HttpPrincipal principal)
Attempts to login the
Principal on this realm. |
void |
logout(Subject subject)
Attempt to logout the subject.
|
getName, getUserRoles, isRoleClass, setName, setRoleClassNames
public Subject login(HttpPrincipal principal) throws LoginException
SecurityAuthenticator
Principal
on this realm.
The login is a success if no Exception is thrown, and a Subject
is returned.principal
- the principalLoginException
- is thrown if error logging in the Principal
public void logout(Subject subject) throws LoginException
SecurityAuthenticator
subject
- subject to logoutLoginException
- is thrown if error logging out subjectApache Camel