
public class EvidenceVerifyCallback extends Object implements ExtendedCallback
Callback for use where credential verification is required.| Constructor and Description |
|---|
EvidenceVerifyCallback(Evidence evidence)
Construct a new instance of this
Callback. |
| Modifier and Type | Method and Description |
|---|---|
<C extends Evidence,R> |
applyToEvidence(Class<C> evidenceType,
Function<C,R> function)
Apply the given function to the acquired evidence, if it is set and of the given type.
|
<C extends Evidence,R> |
applyToEvidence(Class<C> evidenceType,
String algorithmName,
Function<C,R> function)
Apply the given function to the acquired evidence, if it is set and of the given type and algorithm.
|
Evidence |
getEvidence()
Get the evidence being verified.
|
<C extends Evidence> |
getEvidence(Class<C> evidenceType)
Get the acquired evidence, if it is set and of the given type, and if so, return the evidence cast to the type.
|
<C extends Evidence> |
getEvidence(Class<C> evidenceType,
String algorithmName)
Get the acquired evidence, if it is set and of the given type and algorithm, and if so, return the evidence cast to the type.
|
boolean |
isOptional()
This
Callback is not optional as verification is required. |
boolean |
isVerified()
Get the verification state for the evidence referenced here.
|
boolean |
needsInformation()
This
Callback needs to know if evidence validation was successful. |
void |
setVerified(boolean verified)
Set if the evidence referenced here has been verified.
|
public Evidence getEvidence()
public <C extends Evidence> C getEvidence(Class<C> evidenceType)
C - the evidence typeevidenceType - the evidence type class (must not be null)null if the criteria wasn't metpublic <C extends Evidence> C getEvidence(Class<C> evidenceType, String algorithmName)
C - the evidence typeevidenceType - the evidence type class (must not be null)algorithmName - the algorithm namenull if the criteria are not metpublic <C extends Evidence,R> R applyToEvidence(Class<C> evidenceType, Function<C,R> function)
C - the evidence typeR - the return typeevidenceType - the evidence type class (must not be null)function - the function to apply (must not be null)null if the criteria are not metpublic <C extends Evidence,R> R applyToEvidence(Class<C> evidenceType, String algorithmName, Function<C,R> function)
C - the evidence typeR - the return typeevidenceType - the evidence type class (must not be null)algorithmName - the algorithm namefunction - the function to apply (must not be null)null if the criteria are not metpublic void setVerified(boolean verified)
verified - the verification state of the evidencepublic boolean isVerified()
true if the evidence has been verified, false otherwisepublic boolean isOptional()
Callback is not optional as verification is required.isOptional in interface ExtendedCallbacktrue if the callback is optional, false if it is mandatorypublic boolean needsInformation()
Callback needs to know if evidence validation was successful.needsInformation in interface ExtendedCallbacktrue if the callback is requesting information, false if it is only providing informationCopyright © 2020 JBoss by Red Hat. All rights reserved.