Class CAdESAttribute
java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESAttribute
- All Implemented Interfaces:
SignatureAttribute
public class CAdESAttribute extends Object implements SignatureAttribute
Represents a CAdES attribute, part of AttributeTable
-
Method Summary
Modifier and Type Method Description org.bouncycastle.asn1.ASN1Encodable
getASN1Object()
Returns the innerASN1Encodable
objectorg.bouncycastle.asn1.ASN1ObjectIdentifier
getASN1Oid()
Returns object identifierorg.bouncycastle.asn1.ASN1Primitive
getASN1Primitive()
Returns the innerASN1Primitive
objectorg.bouncycastle.asn1.ASN1Set
getAttrValues()
Returns attribute values setboolean
isTimeStampToken()
Checks if the given CAdESAttribute is a timestamp tokenString
toString()
org.bouncycastle.tsp.TimeStampToken
toTimeStampToken()
Returns a TimeStampToken if possible
-
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
-
getASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive getASN1Primitive()Returns the innerASN1Primitive
object- Returns:
ASN1Primitive
object
-
getASN1Object
public org.bouncycastle.asn1.ASN1Encodable getASN1Object()Returns the innerASN1Encodable
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
-
toTimeStampToken
public org.bouncycastle.tsp.TimeStampToken toTimeStampToken()Returns a TimeStampToken if possible- Returns:
- a
TimeStampToken
or null
-
toString
-