Record Class JAXBTrustServiceData

java.lang.Object
java.lang.Record
br.ufsc.labsec.trustedList.parse.JAXBTrustServiceData
All Implemented Interfaces:
ListData, TServiceData

public record JAXBTrustServiceData(eu.europa.esig.trustedlist.jaxb.tsl.TSPServiceType tspServiceType) extends Record implements TServiceData
  • Constructor Details

    • JAXBTrustServiceData

      public JAXBTrustServiceData(eu.europa.esig.trustedlist.jaxb.tsl.TSPServiceType tspServiceType)
      Creates an instance of a JAXBTrustServiceData record class.
      Parameters:
      tspServiceType - the value for the tspServiceType record component
  • Method Details

    • getServiceIdentifier

      public String getServiceIdentifier()
      Specified by:
      getServiceIdentifier in interface TServiceData
    • getServiceName

      public List<String> getServiceName()
      Specified by:
      getServiceName in interface TServiceData
    • getServiceStatus

      public String getServiceStatus()
      Specified by:
      getServiceStatus in interface TServiceData
    • getBase64Certificate

      public List<X509Certificate> getBase64Certificate()
      Specified by:
      getBase64Certificate in interface TServiceData
    • getSubjectName

      public String getSubjectName()
      Specified by:
      getSubjectName in interface TServiceData
    • getBase64SKI

      public String getBase64SKI()
      Specified by:
      getBase64SKI in interface TServiceData
    • 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.
    • tspServiceType

      public eu.europa.esig.trustedlist.jaxb.tsl.TSPServiceType tspServiceType()
      Returns the value of the tspServiceType record component.
      Returns:
      the value of the tspServiceType record component