public abstract class PbeCrypto 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 |
|---|
PbeCrypto() |
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
createSecretKey(byte[] salt,
String algorithm) |
void |
destroy() |
protected void |
init() |
PbeCrypto |
setIterationCount(int iterationCount) |
PbeCrypto |
setKeySize(int keySize) |
PbeCrypto |
setPassword(char[] password) |
PbeCrypto |
setSaltSize(int saltSize) |
PbeCrypto |
setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator) |
PbeCrypto |
setSecurePassword(char[] password) |
PbeCrypto |
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 PbeCrypto setSaltSize(int saltSize)
public PbeCrypto setIterationCount(int iterationCount)
public PbeCrypto setKeySize(int keySize)
public PbeCrypto setSecurePassword(SecureString password)
public PbeCrypto setSecurePassword(char[] password)
public PbeCrypto setPassword(char[] password)
public PbeCrypto setSecretKeyGenerator(SecretKeyGenerator secretKeyGenerator)
Copyright © 2017. All rights reserved.