Package org.pentaho.di.core.encryption
Class CertificateGenEncryptUtil
- java.lang.Object
 - 
- org.pentaho.di.core.encryption.CertificateGenEncryptUtil
 
 
- 
public class CertificateGenEncryptUtil extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intKEY_SIZEstatic StringPUBLIC_KEY_ALGORITHMstatic StringSINGLE_KEY_ALGORITHMstatic StringTRANSMISSION_CIPHER_PARAMS 
- 
Constructor Summary
Constructors Constructor Description CertificateGenEncryptUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeydecodeTransmittedKey(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 KeyPairgenerateKeyPair()static KeygenerateSingleKey()static CipherinitDecryptionCipher(Key unwrappedKey, byte[] unencryptedKey) 
 - 
 
- 
- 
Field Detail
- 
KEY_SIZE
public static final int KEY_SIZE
- See Also:
 - Constant Field Values
 
 
- 
PUBLIC_KEY_ALGORITHM
public static final String PUBLIC_KEY_ALGORITHM
- See Also:
 - Constant Field Values
 
 
- 
SINGLE_KEY_ALGORITHM
public static final String SINGLE_KEY_ALGORITHM
- See Also:
 - Constant Field Values
 
 
- 
TRANSMISSION_CIPHER_PARAMS
public static final String TRANSMISSION_CIPHER_PARAMS
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
generateKeyPair
public static KeyPair generateKeyPair()
 
- 
generateSingleKey
public static Key generateSingleKey() throws NoSuchAlgorithmException
- 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
public static byte[] encryptUsingKey(byte[] data, Key key) 
- 
decryptUsingKey
public static byte[] decryptUsingKey(byte[] data, Key key) 
 - 
 
 -