public class PlainSaslServer extends AbstractSaslServer
| Modifier and Type | Class and Description |
|---|---|
private static class |
PlainSaslServer.InitialResponse
The different state used by the iInitialResponse decoding
|
private static class |
PlainSaslServer.NegotiationState
The possible states for the negotiation of a PLAIN mechanism.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SASL_PLAIN_AUTHCID
The authcid property stored into the LdapSession instance
|
static java.lang.String |
SASL_PLAIN_AUTHZID
The authzid property stored into the LdapSession instance
|
static java.lang.String |
SASL_PLAIN_PASSWORD
The password property stored into the LdapSession instance
|
private PlainSaslServer.NegotiationState |
state
The current negotiation state
|
| Constructor and Description |
|---|
PlainSaslServer(LdapSession ldapSession,
CoreSession adminSession,
org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
Creates a new instance of PlainSaslServer.
|
| Modifier and Type | Method and Description |
|---|---|
private CoreSession |
authenticate(java.lang.String user,
java.lang.String password)
Try to authenticate the user against the underlying LDAP server.
|
byte[] |
evaluateResponse(byte[] initialResponse) |
java.lang.String |
getMechanismName() |
boolean |
isComplete() |
dispose, getAdminSession, getAuthorizationID, getBindRequest, getLdapSession, getNegotiatedProperty, unwrap, wrappublic static final java.lang.String SASL_PLAIN_AUTHZID
public static final java.lang.String SASL_PLAIN_AUTHCID
public static final java.lang.String SASL_PLAIN_PASSWORD
private PlainSaslServer.NegotiationState state
public PlainSaslServer(LdapSession ldapSession, CoreSession adminSession, org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
bindRequest - The associated BindRequest objectldapSession - The associated LdapSession instancepublic java.lang.String getMechanismName()
public byte[] evaluateResponse(byte[] initialResponse)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionpublic boolean isComplete()
private CoreSession authenticate(java.lang.String user, java.lang.String password) throws javax.naming.InvalidNameException, java.lang.Exception
javax.naming.InvalidNameExceptionjava.lang.Exception