org.apache.servicemix.nmr.api.security
Interface AuthenticationService


public interface AuthenticationService

Interface for the authentication service.


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

Method Detail

authenticate

void authenticate(javax.security.auth.Subject subject,
                  java.lang.String domain,
                  java.lang.String user,
                  java.lang.Object credentials)
                  throws java.security.GeneralSecurityException
Authenticate a user given its name and credentials. Upon sucessfull completion, the subject should be populated with the user known principals, including, but not limited to a UserPrincipal and the GroupPrincipal that this user belongs to.

Parameters:
subject - the subject to populate
domain - the security domain to use
user - the user name
credentials - the user credntials
Throws:
java.security.GeneralSecurityException - if the user can not be authenticated


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.