Class Security.ExistingKeyStore

  • Enclosing class:
    Security

    public abstract static class Security.ExistingKeyStore
    extends Security.KeyStoreModel
    Abstract class which represents an existing keystore to use to setup a server instance.
    • Method Detail

      • addCertificateAliases

        public final Security.ExistingKeyStore addCertificateAliases​(String... aliases)
        Add provided certificate aliases to the list of aliases to use in the server.

        Certificates must be in the keystore

        Parameters:
        aliases - List of aliases to use
        Returns:
        This Security.ExistingKeyStore
      • addCertificateAliases

        public final Security.ExistingKeyStore addCertificateAliases​(List<String> aliases)
        Add provided certificate aliases to the list of aliases to use in the server.

        Certificates must be in the keystore

        Parameters:
        aliases - List of aliases to use
        Returns:
        This Security.ExistingKeyStore
      • validateAndListKeyStoreAliases

        public abstract List<String> validateAndListKeyStoreAliases()
                                                             throws com.forgerock.opendj.cli.ArgumentException
        Returns the list of aliases contained in this key store.
        Returns:
        The list of aliases contained in this key store.
        Throws:
        com.forgerock.opendj.cli.ArgumentException - If an error occurred while opening the key store to read aliases.