public class PKCS12PbeAlgorithm extends PKCS12Algorithm
PKCS#12 PBE 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 two PBE algorithms based on the PKCS#5 PBES1 password based
encryption schemes: PBEWithSHAAnd40BitRC2_CBC
(typically used for encrypting CertBags contained in encrypted AuthenticatedSafe objects), and
PBEWithSHAAnd3_KeyTripleDES_CBC
(typically used for
encrypting (Shrouded)KeyBags contained in unencrypted AuthenticatedSafe objects). Both PBES1 encryption
schemes are legacy schemes that may be used mainly for interoperability to existing PKCS#12
applications that do not support the more secure PBES2
password
based encryption scheme.
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.
Modifier and Type | Field and Description |
---|---|
static PKCS12PbeAlgorithm |
NONE
PKCS12PbeAlgorithm providing no protection at all.
|
static PKCS12PbeAlgorithm |
PBEWithSHAAnd3_KeyTripleDES_CBC
PKCS#5 PBES1 encryption scheme PBEWithSHAAnd3_KeyTripleDES_CBC as specified by PKCS#12 (RFC 7292).
|
static PKCS12PbeAlgorithm |
PBEWithSHAAnd40BitRC2_CBC
PKCS#5 PBES1 encryption scheme PBEWithSHAAnd40BitRC2_CBC as specified by PKCS#12 (RFC 7292).
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a clone of this PKCS12PbeAlgorithm.
|
static PKCS12PbeAlgorithm |
getPKCS12PbeAlgorithm(java.lang.String name)
Gets a (PBES1) PKCS12PbeAlgorithm by its name.
|
equals, getIterationCount, getSaltLength, setIterationCount, setSalt, setSaltLength, toString
public static final PKCS12PbeAlgorithm NONE
public static final PKCS12PbeAlgorithm PBEWithSHAAnd40BitRC2_CBC
Salt length: 20.
Iteration count: 10000.
public static final PKCS12PbeAlgorithm PBEWithSHAAnd3_KeyTripleDES_CBC
Salt length: 20.
Iteration count: 10000.
public static final PKCS12PbeAlgorithm getPKCS12PbeAlgorithm(java.lang.String name)
Valid names are:
name
- the name of the PKCS#12 PBES1 algorithmnull
if the
requested PKCS12PbeAlgorithm is not supportedpublic java.lang.Object clone()
clone
in class PKCS12Algorithm