public class DHBufferHandler extends Object implements BufferEncrypter, BufferDecrypter
Uses established shared secret from a Diffie Hellman session to encrypt or decrypt the buffer.
| Constructor and Description |
|---|
DHBufferHandler(DHSession session,
String cipherSpec,
String keySpec,
int blocksize) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encrypted) |
byte[] |
encrypt(byte[] unencrypted) |
public byte[] decrypt(byte[] encrypted)
throws InvalidKeyException,
IllegalStateException,
NoSuchAlgorithmException,
NoSuchPaddingException,
IllegalBlockSizeException,
BadPaddingException,
InvalidAlgorithmParameterException,
NoSuchProviderException
public byte[] encrypt(byte[] unencrypted)
throws InvalidKeyException,
IllegalStateException,
NoSuchAlgorithmException,
NoSuchPaddingException,
IllegalBlockSizeException,
BadPaddingException,
InvalidAlgorithmParameterException,
NoSuchProviderException
Copyright © 2011-2020 dCache.org. All Rights Reserved.