Class CredentialUpdateCallback
java.lang.Object
org.wildfly.security.auth.callback.CredentialUpdateCallback
- All Implemented Interfaces:
Callback,ExtendedCallback
A callback to inform the callback handler of a credential change.
- Author:
- Farah Juma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the new credential.<C extends Credential>
CgetCredential(Class<C> credentialClass) Get the new credential, if it is of the given credential class.booleanDetermine if this callback is optional.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
needsInformation
-
Constructor Details
-
CredentialUpdateCallback
Construct a new instance.- Parameters:
credential- the new credential
-
-
Method Details
-
getCredential
Get the new credential.- Returns:
- the new credential
-
getCredential
Get the new credential, if it is of the given credential class.- Type Parameters:
C- the credential type- Parameters:
credentialClass- the credential class- Returns:
- the credential, or
nullif it is not of the given type
-
isOptional
public boolean isOptional()Description copied from interface:ExtendedCallbackDetermine if this callback is optional.- Specified by:
isOptionalin interfaceExtendedCallback- Returns:
trueif the callback is optional,falseif it is mandatory
-