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, getPrincipal
String getAlgorithm()
null
).default <E extends Evidence,R> R castAndApply(Class<E> evidenceType, String algorithmName, Function<E,R> function)
Evidence
castAndApply
in interface Evidence
E
- 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 © 2017 JBoss by Red Hat. All rights reserved.