Package org.mockserver.model
Class X509Certificate
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.X509Certificate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanbyte[]The DER (ASN.1) encoding of the certificate, captured whenwithCertificate(java.security.cert.Certificate)was called.inthashCode()withCertificate(Certificate certificate) withIssuerDistinguishedName(String issuerDistinguishedName) withSerialNumber(String serialNumber) withSignatureAlgorithmName(String signatureAlgorithmName) withSubjectDistinguishedName(String subjectDistinguishedName) static X509CertificateMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
X509Certificate
public X509Certificate()
-
-
Method Details
-
x509Certificate
-
getCertificate
-
withCertificate
-
getCertificateBytes
public byte[] getCertificateBytes()The DER (ASN.1) encoding of the certificate, captured whenwithCertificate(java.security.cert.Certificate)was called. Used to compute the certificate fingerprint for client-certificate expectation matching. Null when this instance was built without an underlyingCertificate(e.g. deserialized from JSON, which carries only the distinguished-name/serial fields). -
getIssuerDistinguishedName
-
withIssuerDistinguishedName
-
getSubjectDistinguishedName
-
withSubjectDistinguishedName
-
getSerialNumber
-
withSerialNumber
-
getSignatureAlgorithmName
-
withSignatureAlgorithmName
-
clone
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-