Class PKCS12StoreParameter
java.lang.Object
org.bouncycastle.jcajce.PKCS12StoreParameter
- All Implemented Interfaces:
KeyStore.LoadStoreParameter
- Direct Known Subclasses:
PKCS12StoreParameter
LoadStoreParameter to allow for additional config with PKCS12 files.
Note: if you want a straight DER encoding of a PKCS#12 file you should use this.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPKCS12StoreParameter(OutputStream out, char[] password) PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding) PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding, boolean overwriteFriendlyName) PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter) PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding) PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding, boolean overwriteFriendlyName) -
Method Summary
Modifier and TypeMethodDescriptionstatic PKCS12StoreParameter.Builderbuilder(OutputStream out, char[] password) static PKCS12StoreParameter.Builderbuilder(OutputStream out, KeyStore.ProtectionParameter protectionParameter) booleanReturn whether the KeyStore used with this parameter should be DER encoded on saving.booleanReturn whether the KeyStore used with this parameter should overwrite friendlyName when friendlyName is not present or does not equal the same name as aliasboolean
-
Constructor Details
-
PKCS12StoreParameter
-
PKCS12StoreParameter
-
PKCS12StoreParameter
-
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding) -
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding, boolean overwriteFriendlyName) -
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding, boolean overwriteFriendlyName)
-
-
Method Details
-
pbmac1WithPBKDF2Builder
-
builder
-
builder
public static PKCS12StoreParameter.Builder builder(OutputStream out, KeyStore.ProtectionParameter protectionParameter) -
getOutputStream
-
getProtectionParameter
- Specified by:
getProtectionParameterin interfaceKeyStore.LoadStoreParameter
-
isForDEREncoding
public boolean isForDEREncoding()Return whether the KeyStore used with this parameter should be DER encoded on saving.- Returns:
- true for straight DER encoding, false otherwise,
-
isOverwriteFriendlyName
public boolean isOverwriteFriendlyName()Return whether the KeyStore used with this parameter should overwrite friendlyName when friendlyName is not present or does not equal the same name as alias- Returns:
- true (default) to overwrite friendlyName, false otherwise,
-
getMacAlgorithm
-
useISO8859d1ForDecryption
public boolean useISO8859d1ForDecryption()
-