Class IdentityCredentialCallback
java.lang.Object
org.wildfly.security.auth.callback.IdentityCredentialCallback
- All Implemented Interfaces:
Callback,ExtendedCallback
A callback to inform a server authentication mechanism of a credential which may be cached on the authentication
identity (if any). The credential may be public or private.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionIdentityCredentialCallback(Credential credential, boolean isPrivate) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the credential.booleanDetermine whether the credential should be treated as private.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
isOptional, needsInformation
-
Constructor Details
-
IdentityCredentialCallback
Construct a new instance.- Parameters:
credential- the credential (must not benull)isPrivate-trueif the credential should be private,falseif it can be public
-
-
Method Details
-
getCredential
Get the credential.- Returns:
- the credential (not
null)
-
isPrivate
public boolean isPrivate()Determine whether the credential should be treated as private.- Returns:
trueto treat the credential as private,falseotherwise
-