public abstract class PbeCryptoBase extends InitializeObject
| Modifier and Type | Field and Description |
|---|---|
protected int |
iterationCount |
protected int |
keySize |
protected Object |
password |
protected int |
saltSize |
protected SecretKeyGenerator |
secretKeyGenerator |
mutex| Constructor and Description |
|---|
PbeCryptoBase() |
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
createSecretKey(byte[] salt,
String algorithm) |
void |
destroy() |
protected void |
init() |
PbeCryptoBase |
setIterationCount(int iterationCount) |
PbeCryptoBase |
setKeySize(int keySize) |
PbeCryptoBase |
setPassword(char[] password) |
PbeCryptoBase |
setSaltSize(int saltSize) |
PbeCryptoBase |
setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator) |
PbeCryptoBase |
setSecurePassword(char[] password) |
PbeCryptoBase |
setSecurePassword(SecureString password) |
assertNotInitialized, initializeprotected int saltSize
protected int iterationCount
protected int keySize
protected Object 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 createSecretKey(byte[] salt, String algorithm) throws CryptoException
CryptoExceptionpublic PbeCryptoBase setSaltSize(int saltSize)
public PbeCryptoBase setIterationCount(int iterationCount)
public PbeCryptoBase setKeySize(int keySize)
public PbeCryptoBase setSecurePassword(SecureString password)
public PbeCryptoBase setSecurePassword(char[] password)
public PbeCryptoBase setPassword(char[] password)
public PbeCryptoBase setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator)
Copyright © 2018. All rights reserved.