public abstract class AbstractClearableCredential extends Object implements Credential
AbstractClearableCredential
contains behavior common to
Credential
implementations that can be meaningfully
cleared.Constructor and Description |
---|
AbstractClearableCredential() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the credential.
|
protected abstract void |
clearCredential()
Invokes the specific subclass to securely clear the credential value.
|
boolean |
isCleared()
Determines whether the credential value has been securely cleared.
|
protected void |
setCleared()
Specifies that the credential value has been securely cleared.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValid
public final boolean isCleared()
Credential
isCleared
in interface Credential
true
if the credential has been cleared, otherwise false.protected final void setCleared()
public final void clear()
Credential
clear
in interface Credential
protected abstract void clearCredential()
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.
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.