Class CertificateStoreConfiguration


  • public class CertificateStoreConfiguration
    extends Object
    Certificate stores are configured using a defined set of properties. This is a wrapper class for all of them. Instances of this class are immutable and safe for use by multiple concurrent threads.
    Author:
    Guus der Kinderen, guus.der.kinderen@gmail.com
    • Field Detail

      • type

        protected final String type
      • file

        protected final File file
      • password

        protected final char[] password
      • backupDirectory

        protected final File backupDirectory
    • Constructor Detail

      • CertificateStoreConfiguration

        public CertificateStoreConfiguration​(String type,
                                             File file,
                                             char[] password,
                                             File backupDirectory)
        Creates a new instance.
        Parameters:
        type - The store type (jks, jceks, pkcs12, etc). Cannot be null or an empty string.
        file - The file-system based representation of the store (cannot be null).
        password - the password used to check the integrity of the store, the password used to unlock the store, or null.
        backupDirectory - the directory in which the backup of the original keystore should be saved
    • Method Detail

      • getType

        public String getType()
      • getFile

        public File getFile()
      • getPassword

        public char[] getPassword()
      • getBackupDirectory

        public File getBackupDirectory()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object