org.idoox.security
Interface PrincipalAuthenticator


public interface PrincipalAuthenticator

This interface represents the principal authenticator entity, which is used by applications to authenticate an identity into the system. The instances are accessible via the Current object.

Since:
3.0
Component:
Security-Core

Method Summary
 AuthResult authenticate(java.lang.String securityName, byte[] authData)
          Authenticates principal using the supplied security name and returns Credentials object representing this authenticated principal.
 AuthResult continueAuthentication(byte[] responseData, Credentials creds)
          Continues authentication after authenticate method returns AuthResult.AUTH_STATUS_CONTINUE code.
 

Method Detail

authenticate

public AuthResult authenticate(java.lang.String securityName,
                               byte[] authData)
Authenticates principal using the supplied security name and returns Credentials object representing this authenticated principal.

Parameters:
securityName - name of the principal to be authenticated
authData - provider specific data for authentication
Returns:
AuthResult class

continueAuthentication

public AuthResult continueAuthentication(byte[] responseData,
                                         Credentials creds)
Continues authentication after authenticate method returns AuthResult.AUTH_STATUS_CONTINUE code.

Parameters:
responseData - provider specific data for the next round of the authentication process
creds - incomplete credentials returned by the previous call to either authenticate or continueAuthentication method
Returns:
AuthResult class