Class X500SubjectEvidenceDecoder
java.lang.Object
org.wildfly.security.x500.principal.X500SubjectEvidenceDecoder
- All Implemented Interfaces:
Function<Evidence,,Principal> EvidenceDecoder
An evidence decoder that derives the principal that should be associated with the given
X509PeerCertificateChainEvidence from the subject from the first certificate in
the given evidence, as an X500Principal.- Since:
- 1.10.0
- Author:
- Farah Juma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPrincipal(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, waitMethods inherited from interface org.wildfly.security.auth.server.EvidenceDecoder
apply
-
Constructor Details
-
X500SubjectEvidenceDecoder
public X500SubjectEvidenceDecoder()
-
-
Method Details
-
getPrincipal
Description copied from interface:EvidenceDecoderGet the principal from the given evidence. If this decoder does not understand the given evidence,nullis returned.- Specified by:
getPrincipalin interfaceEvidenceDecoder- Parameters:
evidence- the evidence to decode- Returns:
- the principal, or
nullif this decoder does not understand the evidence
-