Class KeyStoreFactory

    • Constructor Detail

      • KeyStoreFactory

        public KeyStoreFactory()
    • Method Detail

      • setType

        public void setType​(String type)
        Sets the type of key store to create. The default is to create a JKS key store.
        Parameters:
        type - the type to use when creating the key store.
        Throws:
        IllegalArgumentException - if the specified value is null.
      • setPassword

        public void setPassword​(String password)
        Sets the key store password. If this value is null no password will be used to check the integrity of the key store.
        Parameters:
        password - the password or null if no password is needed.
      • setProvider

        public void setProvider​(String provider)
        Sets the name of the provider to use when creating the key store. The default is to use the platform default provider.
        Parameters:
        provider - the name of the provider, e.g. "SUN".
      • setData

        public void setData​(byte[] data)
        Sets the data which contains the key store.
        Parameters:
        data - the byte array that contains the key store
      • setDataFile

        public void setDataFile​(File dataFile)
                         throws IOException
        Sets the data which contains the key store.
        Parameters:
        dataFile - the File that contains the key store
        Throws:
        IOException - If we can't process the file
      • setDataUrl

        public void setDataUrl​(URL dataUrl)
                        throws IOException
        Sets the data which contains the key store.
        Parameters:
        dataUrl - the URL that contains the key store.
        Throws:
        IOException - If we can't process the URL