Class KeystoreManager

    • Constructor Detail

      • KeystoreManager

        public KeystoreManager()
        Creates a new instance of RepositoryManager
    • Method Detail

      • changeKeystorePassword

        protected void changeKeystorePassword​(String oldPassword,
                                              String newPassword,
                                              File keystore)
                                       throws RepositoryException
        Changes the keystore password
        Parameters:
        oldPassword - the old keystore password
        newPassword - the new keystore password
        keystore - the keystore whose password is to be changed.
        Throws:
        RepositoryException
      • changeS1ASAliasPassword

        protected void changeS1ASAliasPassword​(RepositoryConfig config,
                                               String storePassword,
                                               String oldKeyPassword,
                                               String newKeyPassword)
                                        throws RepositoryException
        Changes the key password for the default cert whose alias is s1as. The assumption here is that the keystore password is not the same as the key password. This is due to the fact that the keystore password should first be changed followed next by the key password. The end result is that the keystore and s1as key both have the same passwords. This function will tolerate deletion of the s1as alias, but it will not tolerate changing the s1as key from something other than the database password.
        Parameters:
        config -
        storePassword - the keystore password
        oldKeyPassword - the old password for the s1as alias
        newKeyPassword - the new password for the s1as alias
        Throws:
        RepositoryException
      • changeSSLCertificateDatabasePassword

        protected void changeSSLCertificateDatabasePassword​(RepositoryConfig config,
                                                            String oldPassword,
                                                            String newPassword)
                                                     throws RepositoryException
        Changes the password of the keystore, truststore and the key password of the s1as alias. It is expected that the key / truststores may not exist. This is due to the fact that the user may have deleted them and wishes to set up their own key/truststore
        Parameters:
        config -
        storePassword -
        oldKeyPassword -
        newKeyPassword -
        Throws:
        RepositoryException