mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/src/org/opends/sdk/requests/AbstractSASLBindRequest.java
copy from sdk/src/org/opends/sdk/sasl/PasswordCallbackHandler.java copy to sdk/src/org/opends/sdk/requests/AbstractSASLBindRequest.java
File was copied from sdk/src/org/opends/sdk/sasl/PasswordCallbackHandler.java
@@ -25,18 +25,35 @@
 *      Copyright 2009 Sun Microsystems, Inc.
 */
package org.opends.sdk.sasl;
package org.opends.sdk.requests;
import javax.security.auth.callback.PasswordCallback;
import static com.sun.opends.sdk.ldap.LDAPConstants.TYPE_AUTHENTICATION_SASL;
/**
 * Password call-back.
 * An abstract SASL Bind request which can be used as the basis for implementing
 * new SASL authentication methods.
 *
 * @param <R>
 *          The type of SASL Bind request.
 */
public interface PasswordCallbackHandler
abstract class AbstractSASLBindRequest<R extends SASLBindRequest> extends
    AbstractBindRequest<R> implements SASLBindRequest
{
  public boolean handle(PasswordCallback callback);
  public final byte getAuthenticationType()
  {
    return TYPE_AUTHENTICATION_SASL;
  }
  @Override
  public final String getName()
  {
    return "".intern();
  }
}