Package org.wildfly.security.auth.server
Interface EvidenceDecoder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A decoder for extracting a principal from evidence.
- Since:
- 1.10.0
- Author:
- Farah Juma
-
Method Summary
Modifier and TypeMethodDescriptionstatic EvidenceDecoderaggregate(EvidenceDecoder... decoders) Create an aggregated evidence decoder.default PrincipalgetPrincipal(Evidence evidence) Get the principal from the given evidence.
-
Method Details
-
getPrincipal
Get the principal from the given evidence. If this decoder does not understand the given evidence,nullis returned.- Parameters:
evidence- the evidence to decode- Returns:
- the principal, or
nullif this decoder does not understand the evidence
-
apply
-
aggregate
Create an aggregated evidence decoder. The aggregated decoder will try each evidence decoder until one returns anon-nullvalue. If all the evidence decoders returnnull, thennullwill be returned.- Parameters:
decoders- the constituent decoders- Returns:
- the aggregated decoder
-