public final class CryptoUtilJ8 extends CryptoUtil
cryptoStreamFactory| Modifier | Constructor and Description |
|---|---|
protected |
CryptoUtilJ8(CryptoParametersJ8.TYPES type,
byte[] salt,
int count) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decrypt(CryptoStreamFactory factory,
Object source,
Object target,
char[] password)
Copies from a source to a target object using decryption and a caller-suppier
CryptoStreamFactory.
|
void |
encrypt(CryptoStreamFactory factory,
Object source,
Object target,
char[] password)
Copies from a source to a target object using encryption and a caller
supplied CryptoStreamFactory.
|
static CryptoUtilJ8 |
getInstance()
Factory method to get a default instance
default type PDC
|
static CryptoUtilJ8 |
getInstance(CryptoParametersJ8.TYPES type)
Factory method to get a default instance
|
static CryptoUtilJ8 |
getInstance(CryptoParametersJ8.TYPES type,
byte[] salt,
int count)
Factory method to get a default instance
|
static Map<CryptoParametersJ8.TYPES,CryptoUtilJ8> |
getInstances() |
static Map<CryptoParametersJ8.TYPES,CryptoUtilJ8> |
getInstancesWithExplicitParams() |
copy, decrypt, decryptString, decryptString, decryptString, decryptStringWithClearCode, encrypt, encryptString, encryptString, encryptStringWithClearCode, getCryptoStreamFactory, getInstanceprotected CryptoUtilJ8(CryptoParametersJ8.TYPES type, byte[] salt, int count)
type - one of the enum CryptoParametersJ8.TYPES.salt - vcount - the iteration countpublic static CryptoUtilJ8 getInstance()
public static CryptoUtilJ8 getInstance(CryptoParametersJ8.TYPES type)
type - one of the enum CryptoParametersJ8.TYPES.public static CryptoUtilJ8 getInstance(CryptoParametersJ8.TYPES type, byte[] salt, int count)
type - one of the enum CryptoParametersJ8.TYPES.salt - the saltcount - the iteration countpublic void encrypt(CryptoStreamFactory factory, Object source, Object target, char[] password) throws GeneralSecurityException, IOException
CryptoStreamFactoryJ8Template.getOutputStream(InputStream, OutputStream, char[])encrypt in class CryptoUtilfactory - the factory to create the crypto streamssource - the source objecttarget - the target objectpassword - the password to use for encryptionGeneralSecurityException - accessing JCE failedIOException - accessing the source failedprotected void decrypt(CryptoStreamFactory factory, Object source, Object target, char[] password) throws GeneralSecurityException, IOException
decrypt in class CryptoUtilfactory - the factory to create the crypto streamssource - the source objecttarget - the target objectpassword - the password to use for decryptionGeneralSecurityException - accessing JCE failedIOException - accessing the source failedpublic static Map<CryptoParametersJ8.TYPES,CryptoUtilJ8> getInstances()
public static Map<CryptoParametersJ8.TYPES,CryptoUtilJ8> getInstancesWithExplicitParams()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.