Class AbstractClearableCredential
- java.lang.Object
- 
- jakarta.security.enterprise.credential.AbstractClearableCredential
 
- 
- All Implemented Interfaces:
- Credential
 - Direct Known Subclasses:
- UsernamePasswordCredential
 
 public abstract class AbstractClearableCredential extends Object implements Credential AbstractClearableCredentialcontains behavior common toCredential
- 
- 
Constructor SummaryConstructors Constructor Description AbstractClearableCredential()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the credential.protected abstract voidclearCredential()Invokes the specific subclass to securely clear the credential value.booleanisCleared()Determines whether the credential value has been securely cleared.protected voidsetCleared()Specifies that the credential value has been securely cleared.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jakarta.security.enterprise.credential.CredentialisValid
 
- 
 
- 
- 
- 
Method Detail- 
isClearedpublic final boolean isCleared() Description copied from interface:CredentialDetermines whether the credential value has been securely cleared.- Specified by:
- isClearedin interface- Credential
- Returns:
- trueif the credential has been cleared, otherwise false.
 
 - 
setClearedprotected final void setCleared() Specifies that the credential value has been securely cleared.
 - 
clearpublic final void clear() Description copied from interface:CredentialClears the credential. For example, if the credential includes a password, this method would overwrite the password value.- Specified by:
- clearin interface- Credential
 
 - 
clearCredentialprotected abstract void clearCredential() Invokes the specific subclass to securely clear the credential value. SomeCredentialFor example, if the credential includes a password, this method would overwrite the password value. 
 
- 
 
-