public interface Evidence
Modifier and Type | Method and Description |
---|---|
default <E extends Evidence,R> |
castAndApply(Class<E> evidenceType,
Function<E,R> function)
Cast this evidence type and apply a function if the type matches.
|
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.
|
default <E extends Evidence> |
castAs(Class<E> evidenceType)
Cast this evidence type if the type matches.
|
default <E extends Evidence> |
castAs(Class<E> evidenceType,
String algorithmName)
Cast this evidence type if the type and algorithm matches.
|
default Principal |
getPrincipal()
Get the
Principal which can be derived from this evidence, this can be null if there is no derived Principal. |
default Principal getPrincipal()
Principal
which can be derived from this evidence, this can be null
if there is no derived Principal.Principal
which can be derived from this evidence, this can be null
if there is no derived Principal.default <E extends Evidence> E castAs(Class<E> evidenceType, String algorithmName)
E
- the evidence typeevidenceType
- the evidence type class to checkalgorithmName
- the name of the algorithm or null
if any algorithm is acceptablenull
if the evidence does not match the criteriadefault <E extends Evidence> E castAs(Class<E> evidenceType)
E
- the evidence typeevidenceType
- the evidence type class to checknull
if the evidence does not match the criteriadefault <E extends Evidence,R> R castAndApply(Class<E> evidenceType, String algorithmName, Function<E,R> function)
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 typedefault <E extends Evidence,R> R castAndApply(Class<E> evidenceType, Function<E,R> function)
E
- the evidence typeR
- the return typeevidenceType
- the evidence type class to checkfunction
- the function to applynull
if the evidence is not of the given typeCopyright © 2017 JBoss by Red Hat. All rights reserved.