Class X500SubjectEvidenceDecoder
- java.lang.Object
-
- org.wildfly.security.x500.principal.X500SubjectEvidenceDecoder
-
- All Implemented Interfaces:
Function<Evidence,Principal>
,EvidenceDecoder
public final class X500SubjectEvidenceDecoder extends Object implements EvidenceDecoder
An evidence decoder that derives the principal that should be associated with the givenX509PeerCertificateChainEvidence
from the subject from the first certificate in the given evidence, as anX500Principal
.- Since:
- 1.10.0
- Author:
- Farah Juma
-
-
Constructor Summary
Constructors Constructor Description X500SubjectEvidenceDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X500Principal
getPrincipal(Evidence evidence)
Get the principal from the given evidence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.server.EvidenceDecoder
apply
-
-
-
-
Method Detail
-
getPrincipal
public X500Principal getPrincipal(Evidence evidence)
Description copied from interface:EvidenceDecoder
Get the principal from the given evidence. If this decoder does not understand the given evidence,null
is returned.- Specified by:
getPrincipal
in interfaceEvidenceDecoder
- Parameters:
evidence
- the evidence to decode- Returns:
- the principal, or
null
if this decoder does not understand the evidence
-
-