Class JAASSecurityAuthenticator
- java.lang.Object
-
- org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
-
- org.apache.camel.component.netty.http.JAASSecurityAuthenticator
-
- All Implemented Interfaces:
SecurityAuthenticator
public class JAASSecurityAuthenticator extends SecurityAuthenticatorSupport
A JAAS basedSecurityAuthenticatorimplementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
SecurityAuthenticatorSupport.HttpPrincipalCallbackHandler
-
-
Constructor Summary
Constructors Constructor Description JAASSecurityAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subjectlogin(HttpPrincipal principal)Attempts to login thePrincipalon this realm.voidlogout(Subject subject)Attempt to logout the subject.-
Methods inherited from class org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
getName, getUserRoles, isRoleClass, setName, setRoleClassNames
-
-
-
-
Method Detail
-
login
public Subject login(HttpPrincipal principal) throws LoginException
Description copied from interface:SecurityAuthenticatorAttempts to login thePrincipalon this realm. The login is a success if no Exception is thrown, and aSubjectis returned.- Parameters:
principal- the principal- Returns:
- the subject for the logged in principal, must not be null
- Throws:
LoginException- is thrown if error logging in thePrincipal
-
logout
public void logout(Subject subject) throws LoginException
Description copied from interface:SecurityAuthenticatorAttempt to logout the subject.- Parameters:
subject- subject to logout- Throws:
LoginException- is thrown if error logging out subject
-
-