Class CAdESAttribute

java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESAttribute
All Implemented Interfaces:
SignatureAttribute, Serializable

public class CAdESAttribute extends Object implements SignatureAttribute
Represents a CAdES attribute, part of AttributeTable
See Also:
  • Field Details

  • Method Details

    • getASN1Oid

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getASN1Oid()
      Returns object identifier
      Returns:
      ASN1ObjectIdentifier
    • getAttrValues

      public org.bouncycastle.asn1.ASN1Set getAttrValues()
      Returns attribute values set
      Returns:
      ASN1Set
    • getASN1Object

      public org.bouncycastle.asn1.ASN1Encodable getASN1Object()
      Returns the inner ASN1Encodable object
      Returns:
      ASN1Sequence object
    • isTimeStampToken

      public boolean isTimeStampToken()
      Checks if the given CAdESAttribute is a timestamp token
      Returns:
      TRUE if the attribute is a timestamp, FALSE otherwise
    • getTimestampTokenType

      public TimestampType getTimestampTokenType()
      Returns type of the timestamp token, when applicable
      Returns:
      TimestampType
    • toTimeStampToken

      public org.bouncycastle.tsp.TimeStampToken toTimeStampToken()
      Returns a TimeStampToken if possible
      Returns:
      a TimeStampToken or null
    • isEvidenceRecord

      public boolean isEvidenceRecord()
      Checks if the given CAdES attribute represents an evidence record
      Returns:
      TRUE if the attribute is an evidence record, FALSE otherwise
    • toEvidenceRecord

      public org.bouncycastle.asn1.tsp.EvidenceRecord toEvidenceRecord()
      Returns a EvidenceRecord if possible
      Returns:
      a EvidenceRecord or null
    • getOrder

      protected Integer getOrder()
      Gets order of the CAdES Attribute from the original AttributeTable
      Returns:
      Integer
    • getIdentifier

      public SignatureAttributeIdentifier getIdentifier()
      Description copied from interface: SignatureAttribute
      Gets the attribute identifier
      Specified by:
      getIdentifier in interface SignatureAttribute
      Returns:
      SignatureAttributeIdentifier
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object