Class ParsedCertificate


  • public class ParsedCertificate
    extends java.lang.Object
    Helper class for certificate parsing X509 certificates.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParsedCertificate​(java.security.cert.X509Certificate x509Certificate, byte[] rawCertificate, java.lang.String certificateHash)
      Constructor
    • Constructor Detail

      • ParsedCertificate

        public ParsedCertificate​(java.security.cert.X509Certificate x509Certificate,
                                 byte[] rawCertificate,
                                 java.lang.String certificateHash)
        Constructor
        Parameters:
        x509Certificate -
        rawCertificate -
        certificateHash -
    • Method Detail

      • getX509Certificate

        public java.security.cert.X509Certificate getX509Certificate()
        Get x509Certificate
        Returns:
        x509Certificate
      • getRawCertificate

        public byte[] getRawCertificate()
        Get rawCertificate
        Returns:
        rawCertificate
      • getCertificateHash

        public java.lang.String getCertificateHash()
        Get certificateHash
        Returns:
        certificateHash
      • toCertificateHexString

        public static java.lang.String toCertificateHexString​(byte[] certificate)
        Converts a certificate to Hex for logging (Truncated to MAX_CERTIFICATE_LOG_LENGTH)
        Parameters:
        certificate -
        Returns: