Top Description Fields Constructors Methods
org.bouncycastle.jcajce

public Class BCFKSStoreParameter

extends Object
implements LoadStoreParameter
Class Inheritance
All Implemented Interfaces
java.security.KeyStore.LoadStoreParameter
Imports
java.io.OutputStream, java.security.KeyStore, org.bouncycastle.crypto.util.PBKDFConfig

Deprecated

This class does not support configuration on creation, use BCFKSLoadStoreParameter for best results.

LoadStoreParameter to allow configuring of the PBKDF used to generate encryption keys for use in the keystore.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
BCFKSStoreParameter(OutputStream out, PBKDFConfig storeConfig, char[] password)

public

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 PBKDFConfig

Returns:

the PBKDF to use for deriving HMAC and store encryption keys.
getStorePBKDFConfig
()

Return the PBKDF used for generating the HMAC and store encryption keys.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outback to summary
private OutputStream out
protectionParameterback to summary
private final KeyStore.ProtectionParameter protectionParameter
storeConfigback to summary
private final PBKDFConfig storeConfig

Constructor Detail

BCFKSStoreParameterback to summary
public BCFKSStoreParameter(OutputStream out, PBKDFConfig storeConfig, char[] password)
BCFKSStoreParameterback to summary
public BCFKSStoreParameter(OutputStream out, PBKDFConfig storeConfig, KeyStore.ProtectionParameter protectionParameter)

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

getStorePBKDFConfigback to summary
public PBKDFConfig getStorePBKDFConfig()

Return the PBKDF used for generating the HMAC and store encryption keys.

Returns:PBKDFConfig

the PBKDF to use for deriving HMAC and store encryption keys.