Package org.pentaho.di.core.encryption
Class CertificateGenEncryptUtil
java.lang.Object
org.pentaho.di.core.encryption.CertificateGenEncryptUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Key
decodeTransmittedKey
(byte[] sessionKey, byte[] transmittedKey, boolean privateKey) static byte[]
decryptUsingKey
(byte[] data, Key key) static byte[]
encodeKeyForTransmission
(Key encodingKey, Key keyToEncode) static byte[]
encryptUsingKey
(byte[] data, Key key) static KeyPair
static Key
static Cipher
initDecryptionCipher
(Key unwrappedKey, byte[] unencryptedKey)
-
Field Details
-
KEY_SIZE
public static final int KEY_SIZE- See Also:
-
PUBLIC_KEY_ALGORITHM
- See Also:
-
SINGLE_KEY_ALGORITHM
- See Also:
-
TRANSMISSION_CIPHER_PARAMS
- See Also:
-
-
Constructor Details
-
CertificateGenEncryptUtil
public CertificateGenEncryptUtil()
-
-
Method Details
-
generateKeyPair
-
generateSingleKey
- Throws:
NoSuchAlgorithmException
-
encodeKeyForTransmission
public static byte[] encodeKeyForTransmission(Key encodingKey, Key keyToEncode) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException -
decodeTransmittedKey
public static Key decodeTransmittedKey(byte[] sessionKey, byte[] transmittedKey, boolean privateKey) throws InvalidKeySpecException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException -
initDecryptionCipher
public static Cipher initDecryptionCipher(Key unwrappedKey, byte[] unencryptedKey) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException -
encryptUsingKey
-
decryptUsingKey
-