Class UsernamePasswordCredential

    • Constructor Detail

      • UsernamePasswordCredential

        public UsernamePasswordCredential​(String callerName,
                                          String password)
        Constructor.
        Parameters:
        callerName - The caller name
        password - The password, as a String
      • UsernamePasswordCredential

        public UsernamePasswordCredential​(String callerName,
                                          Password password)
        Constructor.
        Parameters:
        callerName - The caller name
        password - The password
    • Method Detail

      • getPassword

        public Password getPassword()
        Determines the password.
        Returns:
        The password.
      • getPasswordAsString

        public String getPasswordAsString()
        Determines the password.
        Returns:
        The password, as a String.
      • clearCredential

        public void clearCredential()
        Description copied from class: AbstractClearableCredential
        Invokes the specific subclass to securely clear the credential value. Some Credential subclasses contain credential values which are inherently secure, such as tokens, for which clearing the credential may not be necessary.

        For example, if the credential includes a password, this method would overwrite the password value.

        Specified by:
        clearCredential in class AbstractClearableCredential
      • getCaller

        public String getCaller()
      • compareTo

        public boolean compareTo​(String callerName,
                                 String password)