| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap.requests; |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.DecodeOptions; |
| | | import org.forgerock.opendj.ldap.ErrorResultException; |
| | |
| | | |
| | | /** |
| | | * Returns the password of the user that the client wishes to bind as. |
| | | * <p> |
| | | * Unless otherwise indicated, implementations will store a reference to the |
| | | * returned password byte array, allowing applications to overwrite the |
| | | * password after it has been used. |
| | | * |
| | | * @return The password of the user that the client wishes to bind as. |
| | | */ |
| | | ByteString getPassword(); |
| | | byte[] getPassword(); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | /** |
| | | * Sets the password of the user that the client wishes to bind as. |
| | | * <p> |
| | | * Unless otherwise indicated, implementations will store a reference to the |
| | | * provided password byte array, allowing applications to overwrite the |
| | | * password after it has been used. |
| | | * |
| | | * @param password |
| | | * The password of the user that the client wishes to bind as, which |
| | |
| | | * @throws NullPointerException |
| | | * If {@code password} was {@code null}. |
| | | */ |
| | | PlainSASLBindRequest setPassword(ByteString password) |
| | | PlainSASLBindRequest setPassword(byte[] password) |
| | | throws UnsupportedOperationException, NullPointerException; |
| | | |
| | | |