copy from sdk/src/org/opends/sdk/sasl/PasswordCallbackHandler.java
copy to sdk/src/org/opends/sdk/ReferralException.java
| File was copied from sdk/src/org/opends/sdk/sasl/PasswordCallbackHandler.java |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.sdk.sasl; |
| | | package org.opends.sdk; |
| | | |
| | | |
| | | |
| | | import javax.security.auth.callback.PasswordCallback; |
| | | import org.opends.sdk.responses.Result; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Password call-back. |
| | | * Thrown when the result code returned in a Result indicates that the Request |
| | | * could not be processed by the Directory Server because the target entry is |
| | | * located on another server. More specifically, this exception is used for the |
| | | * {@link ResultCode#REFERRAL REFERRAL} result code. |
| | | */ |
| | | public interface PasswordCallbackHandler |
| | | @SuppressWarnings("serial") |
| | | public class ReferralException extends EntryNotFoundException |
| | | { |
| | | public boolean handle(PasswordCallback callback); |
| | | ReferralException(final Result result) |
| | | { |
| | | super(result); |
| | | } |
| | | } |