
public interface AlgorithmEvidence extends Evidence
| Modifier and Type | Method and Description |
|---|---|
default <E extends Evidence,R> |
castAndApply(Class<E> evidenceType,
String algorithmName,
Function<E,R> function)
Cast this evidence type and apply a function if the type matches.
|
String |
getAlgorithm()
Get the algorithm name associated with this evidence (will never be
null). |
castAndApply, castAs, castAs, getPrincipalString getAlgorithm()
null).default <E extends Evidence,R> R castAndApply(Class<E> evidenceType, String algorithmName, Function<E,R> function)
EvidencecastAndApply in interface EvidenceE - the evidence typeR - the return typeevidenceType - the evidence type class to checkalgorithmName - the name of the algorithm or null if any algorithm is acceptablefunction - the function to applynull if the evidence is not of the given typeCopyright © 2020 JBoss by Red Hat. All rights reserved.