Interface Certificate

All Known Subinterfaces:
ClientCertificate

public interface Certificate
An SSL certificate instance such as an X.509 certificate providing an SSL server identity.
  • Method Summary

    Modifier and Type
    Method
    Description
    default byte[]
    Returns an array of bytes that represents the DER-encoded representation of X509Certificate.
    default List<Certificate>
    Returns the list of intermediate certificates associated with this certificate that may be needed for chain building.
    of(X509Certificate x509Cert)
    Returns the Certificate instance for the given X.509 certificate.
    of(X509Certificate x509Cert, List<X509Certificate> intermediateX509Certs)
    Returns the Certificate instance for the given X.509 certificate and the list of intermediate X.509 certificates associated with this the certificate that may be needed for chain building.
    Returns an Optional that contains an X.509 certificate initialized with the data stored in the derEncodedValue() array of bytes or an empty Optional if the CertificateException was thrown while restoring certificate from its DER-encoded bytes array.