public class PbeEncryptor extends PbeObject implements Encryptor
iterationCount, keySize, password, saltSize, secretKeyGenerator| Constructor and Description |
|---|
PbeEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
protected AlgorithmParameterSpec |
buildIvParameter(byte[] iv) |
PbeEncryptor |
copy() |
byte[] |
decrypt(byte[] message) |
byte[] |
encrypt(byte[] message) |
int |
getIvSize() |
protected void |
init() |
protected boolean |
requiresIV(String mode) |
PbeEncryptor |
setGcmTagSize(int gcmTagSize) |
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) |
buildSecretKey, destroyassertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, initializeprotected boolean requiresIV(String mode)
protected AlgorithmParameterSpec buildIvParameter(byte[] iv)
public byte[] encrypt(byte[] message)
throws CryptoException
encrypt in interface EncryptorCryptoExceptionpublic byte[] decrypt(byte[] message)
throws CryptoException
decrypt in interface EncryptorCryptoExceptionpublic int getIvSize()
public 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 setGcmTagSize(int gcmTagSize)
public PbeEncryptor copy()
Copyright © 2019. All rights reserved.