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