public class PKCS12StoreParameter
extends java.lang.Object
implements java.security.KeyStore.LoadStoreParameter
Note: if you want a straight DER encoding of a PKCS#12 file you should use this.
| Modifier and Type | Class and Description |
|---|---|
static class |
PKCS12StoreParameter.Builder |
static class |
PKCS12StoreParameter.PBMAC1WithPBKDF2Builder |
| Constructor and Description |
|---|
PKCS12StoreParameter(java.io.OutputStream out,
char[] password) |
PKCS12StoreParameter(java.io.OutputStream out,
char[] password,
boolean forDEREncoding) |
PKCS12StoreParameter(java.io.OutputStream out,
char[] password,
boolean forDEREncoding,
boolean overwriteFriendlyName) |
PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter) |
PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter,
boolean forDEREncoding) |
PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter,
boolean forDEREncoding,
boolean overwriteFriendlyName) |
| Modifier and Type | Method and Description |
|---|---|
static PKCS12StoreParameter.Builder |
builder(java.io.OutputStream out,
char[] password) |
static PKCS12StoreParameter.Builder |
builder(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter) |
AlgorithmIdentifier |
getMacAlgorithm() |
java.io.OutputStream |
getOutputStream() |
java.security.KeyStore.ProtectionParameter |
getProtectionParameter() |
boolean |
isForDEREncoding()
Return whether the KeyStore used with this parameter should be DER encoded on saving.
|
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
|
static PKCS12StoreParameter.PBMAC1WithPBKDF2Builder |
pbmac1WithPBKDF2Builder() |
boolean |
useISO8859d1ForDecryption() |
public PKCS12StoreParameter(java.io.OutputStream out,
char[] password)
public PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter)
public PKCS12StoreParameter(java.io.OutputStream out,
char[] password,
boolean forDEREncoding)
public PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter,
boolean forDEREncoding)
public PKCS12StoreParameter(java.io.OutputStream out,
char[] password,
boolean forDEREncoding,
boolean overwriteFriendlyName)
public PKCS12StoreParameter(java.io.OutputStream out,
java.security.KeyStore.ProtectionParameter protectionParameter,
boolean forDEREncoding,
boolean overwriteFriendlyName)
public static PKCS12StoreParameter.PBMAC1WithPBKDF2Builder pbmac1WithPBKDF2Builder()
public static PKCS12StoreParameter.Builder builder(java.io.OutputStream out, char[] password)
public static PKCS12StoreParameter.Builder builder(java.io.OutputStream out, java.security.KeyStore.ProtectionParameter protectionParameter)
public java.io.OutputStream getOutputStream()
public java.security.KeyStore.ProtectionParameter getProtectionParameter()
getProtectionParameter in interface java.security.KeyStore.LoadStoreParameterpublic boolean isForDEREncoding()
public boolean isOverwriteFriendlyName()
public AlgorithmIdentifier getMacAlgorithm()
public boolean useISO8859d1ForDecryption()