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.

public record PresentedCertificate(String fingerprintSha256, String subjectDn) extends Record
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 Details

    • fingerprintSha256

      private final String fingerprintSha256
      The field for the fingerprintSha256 record component.
    • subjectDn

      private final String subjectDn
      The field for the subjectDn record component.
  • Constructor Details

    • PresentedCertificate

      public PresentedCertificate(String fingerprintSha256, String subjectDn)
      Creates an instance of a PresentedCertificate record class.
      Parameters:
      fingerprintSha256 - the value for the fingerprintSha256 record component
      subjectDn - the value for the subjectDn record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fingerprintSha256

      public String fingerprintSha256()
      Returns the value of the fingerprintSha256 record component.
      Returns:
      the value of the fingerprintSha256 record component
    • subjectDn

      public String subjectDn()
      Returns the value of the subjectDn record component.
      Returns:
      the value of the subjectDn record component