Record Class PresentedCertificate
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.x509.PresentedCertificate
- Record Components:
fingerprintSha256- SHA-256 fingerprint of the DER form, as 64 lower case hexadecimal digits.subjectDn- subject distinguished name, in the RFC 2253 form.
What a binding keeps of a certificate sent to the account API: its fingerprint, which identifies it, and its subject,
which only tells the bindings apart.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thefingerprintSha256record component.private final StringThe field for thesubjectDnrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPresentedCertificate(String fingerprintSha256, String subjectDn) Creates an instance of aPresentedCertificaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of thesubjectDnrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fingerprintSha256
The field for thefingerprintSha256record component. -
subjectDn
The field for thesubjectDnrecord component.
-
-
Constructor Details
-
PresentedCertificate
Creates an instance of aPresentedCertificaterecord class.- Parameters:
fingerprintSha256- the value for thefingerprintSha256record componentsubjectDn- the value for thesubjectDnrecord 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). -
fingerprintSha256
Returns the value of thefingerprintSha256record component.- Returns:
- the value of the
fingerprintSha256record component
-
subjectDn
Returns the value of thesubjectDnrecord component.- Returns:
- the value of the
subjectDnrecord component
-