public class PbeEncryptor extends PbeCrypto 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, initializepublic 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 PbeCryptopublic PbeEncryptor setIterationCount(int iterationCount)
setIterationCount in class PbeCryptopublic PbeEncryptor setKeySize(int keySize)
setKeySize in class PbeCryptopublic PbeEncryptor setSecurePassword(SecureString password)
setSecurePassword in class PbeCryptopublic PbeEncryptor setSecurePassword(char[] password)
setSecurePassword in class PbeCryptopublic PbeEncryptor setPassword(char[] password)
setPassword in class PbeCryptopublic PbeEncryptor setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator)
setSecretKeyGenerator in class PbeCryptopublic PbeEncryptor copy()
Copyright © 2017. All rights reserved.