Class PKCS12StoreParameter

  • All Implemented Interfaces:
    java.security.KeyStore.LoadStoreParameter
    Direct Known Subclasses:
    PKCS12StoreParameter

    public class PKCS12StoreParameter
    extends java.lang.Object
    implements java.security.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 Detail

      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    char[] password)
      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    java.security.KeyStore.ProtectionParameter protectionParameter)
      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    char[] password,
                                    boolean forDEREncoding)
      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    java.security.KeyStore.ProtectionParameter protectionParameter,
                                    boolean forDEREncoding)
      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    char[] password,
                                    boolean forDEREncoding,
                                    boolean overwriteFriendlyName)
      • PKCS12StoreParameter

        public PKCS12StoreParameter​(java.io.OutputStream out,
                                    java.security.KeyStore.ProtectionParameter protectionParameter,
                                    boolean forDEREncoding,
                                    boolean overwriteFriendlyName)
    • Method Detail

      • builder

        public static PKCS12StoreParameter.Builder builder​(java.io.OutputStream out,
                                                           java.security.KeyStore.ProtectionParameter protectionParameter)
      • getOutputStream

        public java.io.OutputStream getOutputStream()
      • getProtectionParameter

        public java.security.KeyStore.ProtectionParameter getProtectionParameter()
        Specified by:
        getProtectionParameter in interface java.security.KeyStore.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,
      • useISO8859d1ForDecryption

        public boolean useISO8859d1ForDecryption()