Record Class TestCertificates.GeneratedCertificate
java.lang.Object
java.lang.Record
com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
- Record Components:
certificate- the certificate.pem- its PEM text.fingerprintSha256- its SHA-256 fingerprint, as 64 lower case hexadecimal digits.
- Enclosing class:
TestCertificates
public static record TestCertificates.GeneratedCertificate(X509Certificate certificate, String pem, String fingerprintSha256)
extends Record
A generated certificate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final X509CertificateThe field for thecertificaterecord component.private final StringThe field for thefingerprintSha256record component.private final StringThe field for thepemrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratedCertificate(X509Certificate certificate, String pem, String fingerprintSha256) Creates an instance of aGeneratedCertificaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintSha256record component.final inthashCode()Returns a hash code value for this object.pem()Returns the value of thepemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
certificate
The field for thecertificaterecord component. -
pem
The field for thepemrecord component. -
fingerprintSha256
The field for thefingerprintSha256record component.
-
-
Constructor Details
-
GeneratedCertificate
Creates an instance of aGeneratedCertificaterecord class.- Parameters:
certificate- the value for thecertificaterecord componentpem- the value for thepemrecord componentfingerprintSha256- the value for thefingerprintSha256record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-
pem
Returns the value of thepemrecord component.- Returns:
- the value of the
pemrecord component
-
fingerprintSha256
Returns the value of thefingerprintSha256record component.- Returns:
- the value of the
fingerprintSha256record component
-