Class X509PeerCertificateChainEvidence

    • Constructor Detail

      • X509PeerCertificateChainEvidence

        public X509PeerCertificateChainEvidence​(X509Certificate... peerCertificateChain)
        Construct a new instance.
        Parameters:
        peerCertificateChain - the peer certificate chain to use (must not be null)
    • Method Detail

      • getDecodedPrincipal

        public Principal getDecodedPrincipal()
        Description copied from interface: Evidence
        Get the Principal derived from this evidence using an evidence decoder (may be null).
        Specified by:
        getDecodedPrincipal in interface Evidence
        Returns:
        the Principal derived from this evidence using an evidence decoder (may be null)
      • setDecodedPrincipal

        public void setDecodedPrincipal​(Principal decodedPrincipal)
        Description copied from interface: Evidence
        Set the Principal derived from this evidence using an evidence decoder (may be null). This method is a no-op by default. It is intended to be implemented by evidence types that can be associated with a principal derived from an evidence decoder.
        Specified by:
        setDecodedPrincipal in interface Evidence
        Parameters:
        decodedPrincipal - the principal derived from this evidence using an evidence decoder (may be null)
      • getPeerCertificateChain

        public X509Certificate[] getPeerCertificateChain()
        Get the peer certificate chain.
        Returns:
        the peer certificate chain (not null)
      • getAlgorithm

        public String getAlgorithm()
        Get the certificate public key algorithm.
        Specified by:
        getAlgorithm in interface AlgorithmEvidence
        Returns:
        the certificate public key algorithm (not null)
      • getFirstCertificate

        public X509Certificate getFirstCertificate()
        Get the first certificate in the peer certificate chain.
        Returns:
        the first certificate in the peer certificate chain
      • getLastCertificate

        public X509Certificate getLastCertificate()
        Get the last certificate in the peer certificate chain.
        Returns:
        the last certificate in the peer certificate chain