public class PbeEncryptor extends PbeCryptoBase implements Encryptor
iterationCount, keySize, password, saltSize, secretKeyGenerator| Constructor and Description |
|---|
PbeEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
PbeEncryptor |
copy() |
byte[] |
decrypt(byte[] message) |
byte[] |
encrypt(byte[] message) |
protected void |
init() |
PbeEncryptor |
setIterationCount(int iterationCount) |
PbeEncryptor |
setKeySize(int keySize) |
PbeEncryptor |
setPassword(char[] password) |
PbeEncryptor |
setProvider(String provider) |
PbeEncryptor |
setSaltSize(int saltSize) |
PbeEncryptor |
setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator) |
PbeEncryptor |
setSecurePassword(char[] password) |
PbeEncryptor |
setSecurePassword(SecureString password) |
PbeEncryptor |
setTransformation(String transformation) |
createSecretKey, destroyassertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, initializeprotected void init()
throws Exception
init in class PbeCryptoBaseExceptionpublic byte[] encrypt(byte[] message)
throws CryptoException
encrypt in interface EncryptorCryptoExceptionpublic byte[] decrypt(byte[] message)
throws CryptoException
decrypt in interface EncryptorCryptoExceptionpublic PbeEncryptor setTransformation(String transformation)
public PbeEncryptor setProvider(String provider)
public PbeEncryptor setSaltSize(int saltSize)
setSaltSize in class PbeCryptoBasepublic PbeEncryptor setIterationCount(int iterationCount)
setIterationCount in class PbeCryptoBasepublic PbeEncryptor setKeySize(int keySize)
setKeySize in class PbeCryptoBasepublic PbeEncryptor setSecurePassword(SecureString password)
setSecurePassword in class PbeCryptoBasepublic PbeEncryptor setSecurePassword(char[] password)
setSecurePassword in class PbeCryptoBasepublic PbeEncryptor setPassword(char[] password)
setPassword in class PbeCryptoBasepublic PbeEncryptor setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator)
setSecretKeyGenerator in class PbeCryptoBasepublic PbeEncryptor copy()
Copyright © 2018. All rights reserved.