Interface Credential

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void clear()
      Clears the credential.
      default boolean isCleared()
      Determines whether the credential value has been securely cleared.
      default boolean isValid()
      Determines whether the credential is valid.
    • Method Detail

      • isCleared

        default boolean isCleared()
        Determines whether the credential value has been securely cleared.
        Returns:
        true if the credential has been cleared, otherwise false.
      • clear

        default void clear()
        Clears the credential. For example, if the credential includes a password, this method would overwrite the password value.
      • isValid

        default boolean isValid()
        Determines whether the credential is valid. This would be called as part of the credential validation process to check the integrity of the credential, such as a signature check. This check would be self-contained, not requiring identity store access.
        Returns:
        true if credential has integrity.