org.apache.servicemix.jbi.security.auth.impl
Class JAASAuthenticationService

java.lang.Object
  extended by org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationService
All Implemented Interfaces:
AuthenticationService

public class JAASAuthenticationService
extends Object
implements AuthenticationService

Implementation of the authentication service using JAAS.


Constructor Summary
JAASAuthenticationService()
           
 
Method Summary
 void authenticate(Subject subject, String domain, String user, Object credentials)
          Authenticate a user given its name and credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASAuthenticationService

public JAASAuthenticationService()
Method Detail

authenticate

public void authenticate(Subject subject,
                         String domain,
                         String user,
                         Object credentials)
                  throws GeneralSecurityException
Description copied from interface: AuthenticationService
Authenticate a user given its name and credentials. Upon sucessfull completion, the subject should be populated with the user known principals.

Specified by:
authenticate in interface AuthenticationService
Parameters:
subject - the subject to populate
domain - the security domain to use
user - the user name
credentials - the user credntials
Throws:
GeneralSecurityException - if the user can not be authenticated


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.