| | |
| | | * Password modify extended result implementation. |
| | | */ |
| | | final class PasswordModifyExtendedResultImpl extends |
| | | AbstractExtendedResult<PasswordModifyExtendedResult> implements |
| | | AbstractExtendedResultImpl<PasswordModifyExtendedResult> implements |
| | | PasswordModifyExtendedResult |
| | | { |
| | | private ByteString password; |
| | |
| | | * The ASN.1 element type that will be used to encode the genPasswd component |
| | | * in a password modify extended response. |
| | | */ |
| | | private static final byte TYPE_PASSWORD_MODIFY_GENERATED_PASSWORD = (byte) 0x80; |
| | | private static final byte TYPE_PASSWORD_MODIFY_GENERATED_PASSWORD = |
| | | (byte) 0x80; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new password modify extended result that is an exact copy of the |
| | | * provided result. |
| | | * |
| | | * @param passwordModifyExtendedResult |
| | | * The password modify extended result to be copied. |
| | | * @throws NullPointerException |
| | | * If {@code passwordModifyExtendedResult} was {@code null} . |
| | | */ |
| | | PasswordModifyExtendedResultImpl( |
| | | final PasswordModifyExtendedResult passwordModifyExtendedResult) |
| | | throws NullPointerException |
| | | { |
| | | super(passwordModifyExtendedResult); |
| | | this.password = passwordModifyExtendedResult.getGeneratedPassword(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public ByteString getGeneratedPassword() |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public PasswordModifyExtendedResult setGeneratedPassword( |
| | | final ByteString password) |
| | | final ByteString password) throws UnsupportedOperationException |
| | | { |
| | | this.password = password; |
| | | return this; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public PasswordModifyExtendedResult setGeneratedPassword(final String password) |
| | | public PasswordModifyExtendedResult setGeneratedPassword( |
| | | final String password) throws UnsupportedOperationException |
| | | { |
| | | this.password = (password != null) ? ByteString.valueOf(password) : null; |
| | | return this; |