intarsys runtime library

de.intarsys.aaa.authentication
Interface IAuthenticationHandler

All Superinterfaces:
Serializable

public interface IAuthenticationHandler
extends Serializable

The authentication strategy.

The IAuthenticationHandler manages the login/logout of a subject. After successful authentication with a given ICredential, getSubject returns the currently active authenticated object.


Method Summary
 ISubject getSubject()
          The authenticated subject for the active authentication context.
 void login(ICredential credential)
          Perform the necessary authentication procedure for the given credential.
 void logout()
          Remove the subject from the current authentication context.
 

Method Detail

getSubject

ISubject getSubject()
The authenticated subject for the active authentication context.

Returns:
The authenticated subject for the active authentication context.

login

void login(ICredential credential)
           throws AuthenticationException
Perform the necessary authentication procedure for the given credential. If successful, establish the subject for the active authentication context.

Parameters:
credential -
Throws:
AuthenticationException

logout

void logout()
Remove the subject from the current authentication context.


intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.