Record Class AttributeCertificateValidationContext

java.lang.Object
java.lang.Record
br.ufsc.labsec.validationDataServices.services.attributeCertificate.AttributeCertificateValidationContext

public record AttributeCertificateValidationContext(X509Certificate signer, X509Certificate issuer, org.bouncycastle.cert.X509AttributeCertificateHolder attributeCertificate, CertificateRulesDB database, int version, boolean rfc5755, boolean docIcp16) extends Record
  • Constructor Details

    • AttributeCertificateValidationContext

      public AttributeCertificateValidationContext(X509Certificate signer, X509Certificate issuer, org.bouncycastle.cert.X509AttributeCertificateHolder attributeCertificate, CertificateRulesDB database, int version, boolean rfc5755, boolean docIcp16)
      Creates an instance of a AttributeCertificateValidationContext record class.
      Parameters:
      signer - the value for the signer record component
      issuer - the value for the issuer record component
      attributeCertificate - the value for the attributeCertificate record component
      database - the value for the database record component
      version - the value for the version record component
      rfc5755 - the value for the rfc5755 record component
      docIcp16 - the value for the docIcp16 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • signer

      public X509Certificate signer()
      Returns the value of the signer record component.
      Returns:
      the value of the signer record component
    • issuer

      public X509Certificate issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • attributeCertificate

      public org.bouncycastle.cert.X509AttributeCertificateHolder attributeCertificate()
      Returns the value of the attributeCertificate record component.
      Returns:
      the value of the attributeCertificate record component
    • database

      public CertificateRulesDB database()
      Returns the value of the database record component.
      Returns:
      the value of the database record component
    • version

      public int version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • rfc5755

      public boolean rfc5755()
      Returns the value of the rfc5755 record component.
      Returns:
      the value of the rfc5755 record component
    • docIcp16

      public boolean docIcp16()
      Returns the value of the docIcp16 record component.
      Returns:
      the value of the docIcp16 record component