org.apache.directory.server.ldap.handlers.bind.plain
Class PlainSaslServer

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.bind.AbstractSaslServer
      extended by org.apache.directory.server.ldap.handlers.bind.plain.PlainSaslServer
All Implemented Interfaces:
javax.security.sasl.SaslServer

public class PlainSaslServer
extends AbstractSaslServer

A SaslServer implementation for PLAIN based SASL mechanism. This is required unfortunately because the JDK's SASL provider does not support this mechanism.

Version:
$$Rev$$
Author:
Apache Directory Project

Field Summary
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
 
Constructor Summary
PlainSaslServer(LdapSession ldapSession, CoreSession adminSession, org.apache.directory.shared.ldap.message.BindRequest bindRequest)
          Creates a new instance of PlainSaslServer.
 
Method Summary
 byte[] evaluateResponse(byte[] initialResponse)
          
 java.lang.String getMechanismName()
          
 boolean isComplete()
           
 
Methods inherited from class org.apache.directory.server.ldap.handlers.bind.AbstractSaslServer
dispose, getAdminSession, getAuthorizationID, getBindRequest, getLdapSession, getNegotiatedProperty, unwrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SASL_PLAIN_AUTHZID

public static final java.lang.String SASL_PLAIN_AUTHZID
The authzid property stored into the LdapSession instance

See Also:
Constant Field Values

SASL_PLAIN_AUTHCID

public static final java.lang.String SASL_PLAIN_AUTHCID
The authcid property stored into the LdapSession instance

See Also:
Constant Field Values

SASL_PLAIN_PASSWORD

public static final java.lang.String SASL_PLAIN_PASSWORD
The password property stored into the LdapSession instance

See Also:
Constant Field Values
Constructor Detail

PlainSaslServer

public PlainSaslServer(LdapSession ldapSession,
                       CoreSession adminSession,
                       org.apache.directory.shared.ldap.message.BindRequest bindRequest)
Creates a new instance of PlainSaslServer.

Parameters:
bindRequest - The associated BindRequest object
ldapSession - The associated LdapSession instance
Method Detail

getMechanismName

public java.lang.String getMechanismName()


evaluateResponse

public byte[] evaluateResponse(byte[] initialResponse)
                        throws javax.security.sasl.SaslException

Throws:
javax.security.sasl.SaslException

isComplete

public boolean isComplete()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.