org.apache.servicemix.jbi.security.auth
Interface AuthenticationService

All Known Implementing Classes:
JAASAuthenticationService

public interface AuthenticationService

Interface for the authentication service.


Method Summary
 void authenticate(Subject subject, String domain, String user, Object credentials)
          Authenticate a user given its name and credentials.
 

Method Detail

authenticate

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

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.