|
IBM WebSphereTM eXtreme Scale, Release 8.5 API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.objectgrid.security.plugins.builtins.LDAPAuthenticator
public class LDAPAuthenticator
This class is an implementation of the Authenticator
interface
when a user name and password are used as a credential, and the authentication
is against an LDAP server.
When basic authentication is used, the credential passed to the
authenticate(Credential)
method is a
UserPasswordCredential
object.
This implementation uses the LDAPLoginModule
class to authenticate
the user into an LDAP server using the JAAS login module "LDAPLogin". The
parameters for the LDAP server connection can be configured as options to the
LDAPLoginModule. Please refer to the LDAPLoginModule
class for
more details about what properties should be configured.
This class is only for sample and quick testing purpose. Users should write your own Authenticator implementation which can fit better into the environment.
Authenticator
,
LDAPLoginModule
,
UserPasswordCredential
Constructor Summary | |
---|---|
LDAPAuthenticator()
Creates a new LDAPAuthenticator |
Method Summary | |
---|---|
Subject |
authenticate(Credential credential)
Authenticates a UserPasswordCredential . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPAuthenticator()
Method Detail |
---|
public Subject authenticate(Credential credential) throws InvalidCredentialException, ExpiredCredentialException
UserPasswordCredential
.
Uses the user name and password from the specified UserPasswordCredential to login to the LDAPLoginModule named "LDAPLogin".
authenticate
in interface Authenticator
credential
- the user Credential
InvalidCredentialException
- if credential isn't a
UserPasswordCredential or some error occurs during processing
of the supplied UserPasswordCredential
ExpiredCredentialException
- if credential is expired. This exception
is not used by this implementationAuthenticator.authenticate(Credential)
,
LDAPLoginModule
|
IBM WebSphereTM eXtreme Scale, Release 8.5 API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |