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, waitisValidpublic final boolean isCleared()
CredentialisCleared in interface Credentialtrue if the credential has been cleared, otherwise false.protected final void setCleared()
public final void clear()
Credentialclear in interface Credentialprotected 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.
Comments to: es-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.