org.apache.camel.component.netty.http
Class JAASSecurityAuthenticator

java.lang.Object
  extended by org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
      extended by org.apache.camel.component.netty.http.JAASSecurityAuthenticator
All Implemented Interfaces:
SecurityAuthenticator

public class JAASSecurityAuthenticator
extends SecurityAuthenticatorSupport

A JAAS based SecurityAuthenticator implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
SecurityAuthenticatorSupport.HttpPrincipalCallbackHandler
 
Constructor Summary
JAASSecurityAuthenticator()
           
 
Method Summary
 Subject login(HttpPrincipal principal)
          Attempts to login the Principal on this realm.
 void logout(Subject subject)
          Attempt to logout the subject.
 
Methods inherited from class org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
getName, getUserRoles, isRoleClass, setName, setRoleClassNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASSecurityAuthenticator

public JAASSecurityAuthenticator()
Method Detail

login

public Subject login(HttpPrincipal principal)
              throws LoginException
Description copied from interface: SecurityAuthenticator
Attempts to login the Principal on this realm.

The login is a success if no Exception is thrown, and a Subject is 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 the Principal

logout

public void logout(Subject subject)
            throws LoginException
Description copied from interface: SecurityAuthenticator
Attempt to logout the subject.

Parameters:
subject - subject to logout
Throws:
LoginException - is thrown if error logging out subject


Apache Camel