Top Description Fields Constructors Methods
org.bouncycastle.jcajce

public Class PKCS12StoreParameter

extends Object
implements LoadStoreParameter
Class Inheritance
All Implemented Interfaces
java.security.KeyStore.LoadStoreParameter
Known Direct Subclasses
org.bouncycastle.jcajce.provider.config.PKCS12StoreParameter
Imports
java.io.OutputStream, java.security.KeyStore, .KeyStore.LoadStoreParameter, .KeyStore.ProtectionParameter

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.

Field Summary

Modifier and TypeField and Description
private final boolean
private final OutputStream
private final boolean
private final KeyStore.ProtectionParameter

Constructor Summary

AccessConstructor and Description
public
PKCS12StoreParameter(OutputStream out, char[] password)

public
public
PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding)

public
PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding)

public
PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding, boolean overwriteFriendlyName)

public
PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding, boolean overwriteFriendlyName)

Method Summary

Modifier and TypeMethod and Description
public OutputStream
public KeyStore.ProtectionParameter
getProtectionParameter()

Implements java.security.KeyStore.LoadStoreParameter.getProtectionParameter.

Gets the parameter used to protect keystore data.

public boolean

Returns:

true for straight DER encoding, false otherwise,
isForDEREncoding
()

Return whether the KeyStore used with this parameter should be DER encoded on saving.

public boolean

Returns:

true (default) to overwrite friendlyName, false otherwise,
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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

forDEREncodingback to summary
private final boolean forDEREncoding
outback to summary
private final OutputStream out
overwriteFriendlyNameback to summary
private final boolean overwriteFriendlyName
protectionParameterback to summary
private final KeyStore.ProtectionParameter protectionParameter

Constructor Detail

PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, char[] password)
PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter)
PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding)
PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding)
PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, char[] password, boolean forDEREncoding, boolean overwriteFriendlyName)
PKCS12StoreParameterback to summary
public PKCS12StoreParameter(OutputStream out, KeyStore.ProtectionParameter protectionParameter, boolean forDEREncoding, boolean overwriteFriendlyName)

Method Detail

getOutputStreamback to summary
public OutputStream getOutputStream()
getProtectionParameterback to summary
public KeyStore.ProtectionParameter getProtectionParameter()

Implements java.security.KeyStore.LoadStoreParameter.getProtectionParameter.

Doc from java.security.KeyStore.LoadStoreParameter.getProtectionParameter.

Gets the parameter used to protect keystore data.

Returns:KeyStore.ProtectionParameter

the parameter used to protect keystore data, or null

isForDEREncodingback to summary
public boolean isForDEREncoding()

Return whether the KeyStore used with this parameter should be DER encoded on saving.

Returns:boolean

true for straight DER encoding, false otherwise,

isOverwriteFriendlyNameback to summary
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:boolean

true (default) to overwrite friendlyName, false otherwise,