Class ResponderId

java.lang.Object
eu.europa.esig.dss.spi.x509.ResponderId
All Implemented Interfaces:
Serializable

public class ResponderId extends Object implements Serializable
This class represents a ResponderId extracted from an OCSP response
See Also:
  • Constructor Details

    • ResponderId

      public ResponderId(X500Principal subjectX500Principal, byte[] ski)
      Default constructor
      Parameters:
      subjectX500Principal - X500Principal
      ski - byte array
  • Method Details

    • getX500Principal

      public X500Principal getX500Principal()
      Gets X500Principal of the OCSP issuer
      Returns:
      X500Principal
    • setX500Principal

      public void setX500Principal(X500Principal subjectX500Principal)
      Sets X500Principal of the OCSP issuer
      Parameters:
      subjectX500Principal - X500Principal
    • getSki

      public byte[] getSki()
      Gets the SKI of the issuer
      Returns:
      byte array
    • setSki

      public void setSki(byte[] ski)
      Sets the SKI of the issuer
      Parameters:
      ski - byte array
    • isRelatedToCertificate

      public boolean isRelatedToCertificate(CertificateToken certificateToken)
      Checks if the ResponderId is related to a provided certificateToken
      Parameters:
      certificateToken - CertificateToken to check
      Returns:
      TRUE if the certificateToken is related to the ResponderId, FALSE otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object