org.apache.servicemix.common.security
Interface AuthenticationService


public interface AuthenticationService

Interface for the authentication service.


Nested Class Summary
static class AuthenticationService.Proxy
           
 
Method Summary
 void authenticate(javax.security.auth.Subject subject, java.lang.String domain, java.lang.String user, java.lang.Object credentials)
           Authenticates 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

Authenticates 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:
java.security.GeneralSecurityException - if the user can not be authenticated


Copyright © 2005-2012 FuseSource. All Rights Reserved.