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. |
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 populatedomain - the security domain to useuser - the user namecredentials - the user credntials
- Throws:
java.security.GeneralSecurityException - if the user can not be authenticated
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.