| | |
| | | throw new DirectoryException(DirectoryServer.getServerErrorResultCode(), |
| | | message, e); |
| | | } |
| | | return ByteString.valueOf(output); |
| | | return ByteString.valueOfUtf8(output); |
| | | } |
| | | |
| | | private ByteString sha256CryptEncodePassword(ByteSequence plaintext) |
| | |
| | | Arrays.fill(plaintextBytes, (byte) 0); |
| | | } |
| | | } |
| | | return ByteString.valueOf(output); |
| | | return ByteString.valueOfUtf8(output); |
| | | } |
| | | |
| | | private ByteString sha512CryptEncodePassword(ByteSequence plaintext) |
| | |
| | | Arrays.fill(plaintextBytes, (byte) 0); |
| | | } |
| | | } |
| | | return ByteString.valueOf(output); |
| | | return ByteString.valueOfUtf8(output); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | |
| | | |
| | | buffer.append(encodePassword(plaintext)); |
| | | |
| | | return ByteString.valueOf(buffer); |
| | | return ByteString.valueOfUtf8(buffer); |
| | | } |
| | | |
| | | /** |