| | |
| | | /** |
| | | * Bind result implementation. |
| | | */ |
| | | final class BindResultImpl extends AbstractResultImpl<BindResult> |
| | | implements BindResult |
| | | final class BindResultImpl extends AbstractResultImpl<BindResult> implements |
| | | BindResult |
| | | { |
| | | private ByteString credentials = null; |
| | | |
| | |
| | | |
| | | /** |
| | | * Creates a new bind result using the provided result code. |
| | | * |
| | | * |
| | | * @param resultCode |
| | | * The result code. |
| | | * @throws NullPointerException |
| | | * If {@code resultCode} was {@code null}. |
| | | */ |
| | | BindResultImpl(ResultCode resultCode) throws NullPointerException |
| | | BindResultImpl(final ResultCode resultCode) throws NullPointerException |
| | | { |
| | | super(resultCode); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public BindResult setServerSASLCredentials(ByteString credentials) |
| | | public BindResult setServerSASLCredentials(final ByteString credentials) |
| | | throws UnsupportedOperationException |
| | | { |
| | | this.credentials = credentials; |
| | |
| | | builder.append(", referrals="); |
| | | builder.append(getReferralURIs()); |
| | | builder.append(", serverSASLCreds="); |
| | | builder.append(getServerSASLCredentials() == null ? ByteString |
| | | .empty() : getServerSASLCredentials()); |
| | | builder.append(getServerSASLCredentials() == null ? ByteString.empty() |
| | | : getServerSASLCredentials()); |
| | | builder.append(", controls="); |
| | | builder.append(getControls()); |
| | | builder.append(")"); |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | BindResult getThis() |
| | | { |
| | | return this; |