public final class CredentialUpdateCallback extends Object implements ExtendedCallback
Constructor and Description |
---|
CredentialUpdateCallback(Credential credential)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Credential |
getCredential()
Get the new credential.
|
<C extends Credential> |
getCredential(Class<C> credentialClass)
Get the new credential, if it is of the given credential class.
|
boolean |
isOptional()
Determine if this callback is optional.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
needsInformation
public CredentialUpdateCallback(Credential credential)
credential
- the new credentialpublic Credential getCredential()
public <C extends Credential> C getCredential(Class<C> credentialClass)
C
- the credential typecredentialClass
- the credential classnull
if it is not of the given typepublic boolean isOptional()
ExtendedCallback
isOptional
in interface ExtendedCallback
true
if the callback is optional, false
if it is mandatoryCopyright © 2020 JBoss by Red Hat. All rights reserved.