Interface Credential
- All Known Implementing Classes:
AbstractClearableCredential
,BasicAuthenticationCredential
,CallerOnlyCredential
,RememberMeCredential
,UsernamePasswordCredential
public interface Credential
Credential
represents the credential the caller will use to authenticate.-
Method Summary
-
Method Details
-
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.
-