public abstract class PbeObject extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
protected int |
iterationCount |
protected int |
keySize |
protected char[] |
password |
protected int |
saltSize |
protected SecretKeyGenerator |
secretKeyGenerator |
mutex| Constructor and Description |
|---|
PbeObject() |
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
buildSecretKey(byte[] salt,
String algorithm) |
void |
destroy() |
protected void |
init() |
PbeObject |
setIterationCount(int iterationCount) |
PbeObject |
setKeySize(int keySize) |
PbeObject |
setPassword(char[] password) |
PbeObject |
setPassword(String passwordOrEnv) |
PbeObject |
setSaltSize(int saltSize) |
PbeObject |
setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator) |
assertNotInitialized, initializeprotected int saltSize
protected int iterationCount
protected int keySize
protected char[] password
protected SecretKeyGenerator secretKeyGenerator
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionprotected SecretKey buildSecretKey(byte[] salt, String algorithm) throws CryptoException
CryptoExceptionpublic PbeObject setSaltSize(int saltSize)
public PbeObject setIterationCount(int iterationCount)
public PbeObject setKeySize(int keySize)
public PbeObject setPassword(char[] password)
public PbeObject setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator)
Copyright © 2021. All rights reserved.