Class CredentialUpdateCallback
- java.lang.Object
 - 
- org.wildfly.security.auth.callback.CredentialUpdateCallback
 
 
- 
- All Implemented Interfaces:
 Callback,ExtendedCallback
public final class CredentialUpdateCallback extends Object implements ExtendedCallback
A callback to inform the callback handler of a credential change.- Author:
 - Farah Juma
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CredentialUpdateCallback(Credential credential)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialgetCredential()Get the new credential.<C extends Credential>
CgetCredential(Class<C> credentialClass)Get the new credential, if it is of the given credential class.booleanisOptional()Determine if this callback is optional.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
needsInformation 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CredentialUpdateCallback
public CredentialUpdateCallback(Credential credential)
Construct a new instance.- Parameters:
 credential- the new credential
 
 - 
 
- 
Method Detail
- 
getCredential
public Credential getCredential()
Get the new credential.- Returns:
 - the new credential
 
 
- 
getCredential
public <C extends Credential> C getCredential(Class<C> credentialClass)
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
 
 - 
 
 -