All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.samples.dips.sessauth.SAImpl
java.lang.Object
|
+----com.ibm.beans.samples.dips.sessauth.SAImpl
- public class SAImpl
- extends Object
- implements Serializable
This class is the implementation of the Session Authentication Dip. This object contains references
to the principal, principal query, and authenticator that were configured
by the assembler using the Session Authentication Dip customizer.
This object contains the methods that initiate authentication on a principal, and track
if the principal has been successfully authenticated yet.
-
SAImpl(SessionAuthenticationDip)
- Constructs the Session Authentication Implementation.
-
doAuthentication()
- Invokes the authenticator to verify the principal.
-
getPrincipal()
- Gets the current value of the principal.
-
setPrincipal(SAPrincipal)
- Sets the value of the principal.
SAImpl
public SAImpl(SessionAuthenticationDip dip)
- Constructs the Session Authentication Implementation.
- Parameters:
- dip - A reference to the Session Authentication Dip.
doAuthentication
public boolean doAuthentication()
- Invokes the authenticator to verify the principal.
It is called from the object that queried for the principal. That object is a subclass of
SAPrincipalQuery. This method invokes the appropriate authenticator
to validate the principal entered by the user.
- Returns:
- true if the authentication attempt was successful; false otherwise.
setPrincipal
public void setPrincipal(SAPrincipal principal)
- Sets the value of the principal. This is called from the object that
queried for the principal to store the principal related information. That object is a subclass of
SAPrincipalQuery.
- Parameters:
- principal - The new value for the principal.
- See Also:
- SAPrincipalQuery
getPrincipal
public SAPrincipal getPrincipal()
- Gets the current value of the principal.
- Returns:
- The current value of the principal.
All Packages Class Hierarchy This Package Previous Next Index