Class CertificateStoreConfiguration

java.lang.Object
org.jivesoftware.openfire.keystore.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 Details

    • type

      protected final String type
    • file

      protected final File file
    • password

      protected final char[] password
    • backupDirectory

      protected final File backupDirectory
  • Constructor Details

    • 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 Details

    • getType

      public String getType()
    • getFile

      public File getFile()
    • getPassword

      public char[] getPassword()
    • getBackupDirectory

      public File getBackupDirectory()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object