com.dstc.security.cms
Interface Attribute

All Known Subinterfaces:
ContentType, MessageDigest, SigningTime, SMIMECapabilities

public interface Attribute

An interface to an attribute associated with per-signer information.

Attributes are carried in the SignerInfo associated with each signer in a CMS SignedData. An attribute may be included in the signing process (obtainable via SignerInfo.getSignedAttributes()) or may be excluded (obtainable via SignerInfo.getUnsignedAttributes()).

Commonly used Attributes are defined in the atts sub-package.

Attribute is defined by the ASN.1 structure

    Attribute ::= SEQUENCE {
       attrType    OBJECT IDENTIFIER,
       attrValues  SET OF AttributeValue}

    AttributeValue :: ANY
 

See Also:
SignedData, SignerInfo

Method Summary
 byte[] getEncodedValues()
          Returns the encoded value for this Attribute (the ASN.1 DER encoding for the SET OF in the ASN.1 definition of Attribute).
 String getOid()
          Returns the Object Identifier (as a "dotted string") for this Attribute.
 

Method Detail

getOid

public String getOid()
Returns the Object Identifier (as a "dotted string") for this Attribute.

getEncodedValues

public byte[] getEncodedValues()
Returns the encoded value for this Attribute (the ASN.1 DER encoding for the SET OF in the ASN.1 definition of Attribute).