Interface Credential
-
- All Known Implementing Classes:
AbstractClearableCredential,BasicAuthenticationCredential,CallerOnlyCredential,RememberMeCredential,UsernamePasswordCredential
public interface CredentialCredentialrepresents the credential the caller will use to authenticate.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidclear()Clears the credential.default booleanisCleared()Determines whether the credential value has been securely cleared.default booleanisValid()Determines whether the credential is valid.
-
-
-
Method Detail
-
isCleared
default boolean isCleared()
Determines whether the credential value has been securely cleared.- Returns:
trueif 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:
trueif credential has integrity.
-
-