public class PKCS12Pbes2Algorithm extends PKCS12PbeAlgorithm
PKCS#12 PBES2 algorithms are used to password based encrypt (Shrouded)KeyBags contained in unencrypted AuthenticatedSafe objects and/or CertBags contained in encrypted AuthenticatedSafe objects.
This class provides several PBES2 algorithms based on the PKCS#5 PBES2 password based
encryption schemes; the default
PBE algorithm used
by the IAIK PKCS#12
KeyStore implementation is
PBES2WithHmacSHA256AndAES256
for both encrypted (Shrouded)KeyBags
contained in unencrypted AuthenticatedSafe objects and CertBags contained in encrypted
AuthenticatedSafe objects.
If your PKCS#12 KeyStore(s) must be readable with other PKCS#12 applications, too, be careful
when selecting another than the default PBES2WithHmacSHA256AndAES256
algorithm. Although we have tested the algorithms to work with well established PKCS#12 applications,
it even might happen that an application may only be able to read PKCS#12 KeyStores using the
legacy
PBES1 algorithms.
Modifier and Type | Field and Description |
---|---|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA1AndAES
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA1 as prf) and AES as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA1AndAES256
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA1 as prf) and AES256 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA224AndAES
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA224 as prf) and AES as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA224AndAES256
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA224 as prf) and AES256 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA256AndAES
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA224 as prf) and AES256 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA256AndAES256
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA256 as prf) and AES256 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA384AndAES
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA384 as prf) and AES as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA384AndAES192
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA384 as prf) and AES192 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA384AndAES256
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA384 as prf) and AES256 as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA512AndAES
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA512 as prf) and AES as encryption scheme.
|
static PKCS12Pbes2Algorithm |
PBES2WithHmacSHA512AndAES256
PKCS#5 PBES2 password based encryption scheme using PKDF2 key derivation function
(with HmacSHA512 as prf) and AES256 as encryption scheme.
|
NONE, PBEWithSHAAnd3_KeyTripleDES_CBC, PBEWithSHAAnd40BitRC2_CBC
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a clone of this PKCS12Pbes2Algorithm.
|
boolean |
equals(java.lang.Object obj)
Compares this PKCS12Pbes2Algorithm with the given object.
|
static PKCS12Pbes2Algorithm |
getPKCS12Pbes2Algorithm(java.lang.String name)
Gets a PKCS12Pbes2Algorithm by its name.
|
java.lang.String |
toString()
Gets a String representation of this PKCS12Pbes2Algorithm
|
getPKCS12PbeAlgorithm
getIterationCount, getSaltLength, setIterationCount, setSalt, setSaltLength
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA256AndAES256
Salt length: 32.
Iteration count: 10000.
This is the password based encryption scheme that is used by default
.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA256AndAES
Salt length: 32.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA1AndAES
Salt length: 20.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA1AndAES256
Salt length: 20.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA224AndAES
Salt length: 28.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA224AndAES256
Salt length: 28.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA384AndAES
Salt length: 48.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA384AndAES192
Salt length: 48.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA384AndAES256
Salt length: 48.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA512AndAES
Salt length: 64.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm PBES2WithHmacSHA512AndAES256
Salt length: 64.
Iteration count: 10000.
public static final PKCS12Pbes2Algorithm getPKCS12Pbes2Algorithm(java.lang.String name)
Valid names are:
name
- the name of the PKCS#12 PBES2 algorithmnull
if the
requested PKCS12Pbes2Algorithm is not supportedpublic java.lang.Object clone()
clone
in class PKCS12PbeAlgorithm
public boolean equals(java.lang.Object obj)
equals
in class PKCS12Algorithm
obj
- the other objecttrue
, if the two objects are equal,
false
otherwisepublic java.lang.String toString()
toString
in class PKCS12Algorithm