org.nees.auth
Class AuthenticationMethod

java.lang.Object
  extended byorg.nees.auth.AuthenticationMethod
Direct Known Subclasses:
GridAuthenticationMethod

public abstract class AuthenticationMethod
extends java.lang.Object

This class represents a means of acquiring authentication information.


Constructor Summary
AuthenticationMethod()
           
 
Method Summary
abstract  AuthenticIdentity getIdentity()
          Get the user's authentic identity in a stateless or default-session context.
 AuthenticIdentity getIdentity(java.lang.Object sessionKey)
          Get the session user's authentic identity for a particular authentication session, represented by a session key object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationMethod

public AuthenticationMethod()
Method Detail

getIdentity

public AuthenticIdentity getIdentity(java.lang.Object sessionKey)
                              throws AuthenticationException
Get the session user's authentic identity for a particular authentication session, represented by a session key object. The default behavior of this method is to ignore the session key.

Parameters:
sessionKey - an object representing the authentication session.
Returns:
the user's authentic identity.
Throws:
AuthenticationException

getIdentity

public abstract AuthenticIdentity getIdentity()
                                       throws AuthenticationException
Get the user's authentic identity in a stateless or default-session context.

Returns:
the user's authentic identity.
Throws:
AuthenticationException