All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.samples.dips.sessauth.demo.SamplePrincipalQuery
java.lang.Object
|
+----com.ibm.beans.samples.dips.sessauth.SAPrincipalQuery
|
+----com.ibm.beans.samples.dips.sessauth.demo.SamplePrincipalQuery
- public class SamplePrincipalQuery
- extends SAPrincipalQuery
This sample for the Session Authentication dip queries the
user using an AWT modal dialog for the information required by the
SamplePrincipal object. It attempts to use the SampleSimpleAuthenticator
object to validate that principal information.
-
SamplePrincipalQuery()
- Construct a SamplePrincipalQuery.
-
queryForPrincipal(SAPrincipal)
- Query for the principal information and attempt to authenticate it.
SamplePrincipalQuery
public SamplePrincipalQuery()
- Construct a SamplePrincipalQuery.
queryForPrincipal
public boolean queryForPrincipal(SAPrincipal principal)
- Query for the principal information and attempt to authenticate it.
This method queries the
end user to enter a principal consisting of a User ID and Password using a modal dialog.
It then invokes the authenticator to validate that principal. The Session
Authentication Dip
state indicating whether authentication was successful is updated
based on the return value of this method.
This method must suspend the calling thread until
authentication is complete (successful or not).
- Parameters:
- principal - The principal object queried.
- Returns:
- true to indicate authentication successful; false otherwise.
- Overrides:
- queryForPrincipal in class SAPrincipalQuery
- See Also:
- setPrincipal, doAuthentication
All Packages Class Hierarchy This Package Previous Next Index