Class 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 given X509PeerCertificateChainEvidence from the subject from the first certificate in the given evidence, as an X500Principal.
    Since:
    1.10.0
    Author:
    Farah Juma
    • Constructor Detail

      • X500SubjectEvidenceDecoder

        public X500SubjectEvidenceDecoder()
    • 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 interface EvidenceDecoder
        Parameters:
        evidence - the evidence to decode
        Returns:
        the principal, or null if this decoder does not understand the evidence