Class UserScramCredentialUpsertion

    • Constructor Detail

      • UserScramCredentialUpsertion

        public UserScramCredentialUpsertion​(String user,
                                            ScramCredentialInfo credentialInfo,
                                            String password)
        Constructor that generates a random salt
        Parameters:
        user - the user for which the credential is to be updated/inserted
        credentialInfo - the mechanism and iterations to be used
        password - the password
      • UserScramCredentialUpsertion

        public UserScramCredentialUpsertion​(String user,
                                            ScramCredentialInfo credentialInfo,
                                            byte[] password)
        Constructor that generates a random salt
        Parameters:
        user - the user for which the credential is to be updated/inserted
        credentialInfo - the mechanism and iterations to be used
        password - the password
      • UserScramCredentialUpsertion

        public UserScramCredentialUpsertion​(String user,
                                            ScramCredentialInfo credentialInfo,
                                            byte[] password,
                                            byte[] salt)
        Constructor that accepts an explicit salt
        Parameters:
        user - the user for which the credential is to be updated/inserted
        credentialInfo - the mechanism and iterations to be used
        password - the password
        salt - the salt to be used
    • Method Detail

      • credentialInfo

        public ScramCredentialInfo credentialInfo()
        Returns:
        the mechanism and iterations
      • salt

        public byte[] salt()
        Returns:
        the salt
      • password

        public byte[] password()
        Returns:
        the password