| | |
| | | * Portions Copyright 2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | |
| | | import org.opends.server.types.Entry; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This abstract class wraps/decorates a given bind operation. |
| | | * This class will be extended by sub-classes to enhance the |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public int getAuthFailureID() |
| | | { |
| | | return bind.getAuthFailureID(); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String getAuthFailureReason() |
| | | public Message getAuthFailureReason() |
| | | { |
| | | return bind.getAuthFailureReason(); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void setAuthFailureReason(int id, String reason) |
| | | public void setAuthFailureReason(Message reason) |
| | | { |
| | | if (DirectoryServer.returnBindErrorMessages()) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | bind.setAuthFailureReason(id, reason); |
| | | bind.setAuthFailureReason(reason); |
| | | } |
| | | } |
| | | |