Package org.bouncycastle.jcajce
Class PKCS12StoreParameter
- java.lang.Object
-
- org.bouncycastle.jcajce.PKCS12StoreParameter
-
- All Implemented Interfaces:
KeyStore.LoadStoreParameter
- Direct Known Subclasses:
PKCS12StoreParameter
public class PKCS12StoreParameter extends Object implements KeyStore.LoadStoreParameter
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.
-
-
Constructor Summary
Constructors Constructor Description PKCS12StoreParameter(OutputStream out, char[] password)PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding)PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter)PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetOutputStream()KeyStore.ProtectionParametergetProtectionParameter()Returns theProtectionParameterwhich is used to protect data in theKeyStore.booleanisForDEREncoding()Return whether the KeyStore used with this parameter should be DER encoded on saving.
-
-
-
Constructor Detail
-
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, char[] password)
-
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter)
-
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding)
-
PKCS12StoreParameter
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding)
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream()
-
getProtectionParameter
public KeyStore.ProtectionParameter getProtectionParameter()
Description copied from interface:KeyStore.LoadStoreParameterReturns theProtectionParameterwhich is used to protect data in theKeyStore.- Specified by:
getProtectionParameterin interfaceKeyStore.LoadStoreParameter- Returns:
- the
ProtectionParameterwhich is used to protect data in theKeyStore, maybenull.
-
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,
-
-