All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.dips.sessauth.demo.SampleSimpleAuthenticator

java.lang.Object
   |
   +----com.ibm.beans.samples.dips.sessauth.demo.SampleSimpleAuthenticator

public class SampleSimpleAuthenticator
extends Object
implements SAAuthenticator
This is a sample authenticator for the Session Authentication Dip. This authenticator can validate a SamplePrincipal. That principal consists of a User ID and Password. Valid values for User ID and Password are set when this authenticator is customized.

When the dipped bean is instantiated, the values entered by the end user will be validated against the values set during customization.

See Also:
SamplePrincipal, SamplePrincipalQuery

Constructor Index

 o SampleSimpleAuthenticator()

Method Index

 o authenticatePrincipal(SAPrincipal)
Validate the principal.
 o changeAuthenticationInformation(SAPrincipal, SAPrincipal)
Change the password for this user.

Constructors

 o SampleSimpleAuthenticator
 public SampleSimpleAuthenticator()

Methods

 o authenticatePrincipal
 public boolean authenticatePrincipal(SAPrincipal principal)
Validate the principal. The Sample Principal consists of a User ID and Password. The valid values for the User ID and Password were set when this authenticator was customized.

Parameters:
principal - The Sample Principal to validate.
Returns:
true if authentication is successful; false otherwise.
 o changeAuthenticationInformation
 public boolean changeAuthenticationInformation(SAPrincipal oldPrincipal,
                                                SAPrincipal newPrincipal)
Change the password for this user. Changing passwords is not supported by this sample.

Parameters:
oldPrincipal - The User ID and old Password.
newPrincipal - The User ID and new Password.
Returns:
true if the password was successfully changed; false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index