@FunctionalInterface public interface EvidenceDecoder extends Function<Evidence,Principal>
| Modifier and Type | Method and Description |
|---|---|
static EvidenceDecoder |
aggregate(EvidenceDecoder... decoders)
Create an aggregated evidence decoder.
|
default Principal |
apply(Evidence evidence) |
Principal |
getPrincipal(Evidence evidence)
Get the principal from the given evidence.
|
Principal getPrincipal(Evidence evidence)
null is returned.evidence - the evidence to decodenull if this decoder does not understand the evidencestatic EvidenceDecoder aggregate(EvidenceDecoder... decoders)
non-null value. If all the evidence decoders return null, then null
will be returned.decoders - the constituent decodersCopyright © 2019 JBoss by Red Hat. All rights reserved.