public class EvidenceDecodePrincipalCallback extends Object implements ExtendedCallback
Callback to pass the decoded evidence principal from the callback handler
to the authentication mechanism.| Constructor and Description |
|---|
EvidenceDecodePrincipalCallback(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 decoded.
|
<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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOptional, needsInformationpublic 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 metCopyright © 2019 JBoss by Red Hat. All rights reserved.