|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.asn1.structures.AttributeValue iaik.smime.ess.ESSAttributeValue iaik.smime.ess.ContentReference
public class ContentReference
The S/MIMEv3 ESS ContentReference attribute.
The Enhanced Security Services
for S/MIMEv3 (ESS) (RFC 2634) specifies the ContentReference
attribute to may be included as an signed attribute in a SignerInfo
to link from one SignedData to another. It may be used to link a reply
to the original message to which it refers, or to incorporate by reference one
SignedData into another. The first SignedData must include a contentIdentifier
signed attribute. The second SignedData links to the first by including a
ContentReference signed attribute containing the content type, content identifier,
and signature value from the first SignedData:
ContentReference ::= SEQUENCE { contentType ContentType, signedContentIdentifier ContentIdentifier, originatorSignatureValue OCTET STRING } id-aa-contentReference OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 10 }When
creating
a new ContentReference the content type, signed content identifier
and originator signature value have to be supplied:
ObjectID contentType = ...; ContentIdentifier contentIdentifier = ...; byte[] originatorSignatureValue = ...; ContentReference contentReference = new ContentReference(contentType, contentIdentifier, originatorSignatureValue);
Field Summary | |
---|---|
static ObjectID |
oid
The attributeType object identifier of this ContentReference attribute. |
Constructor Summary | |
---|---|
ContentReference()
Empty default constructor. |
|
ContentReference(ASN1Object obj)
Creates an ContentReference from its ASN.1 representation. |
|
ContentReference(ObjectID contentType,
ContentIdentifier signedContentIdentifier,
byte[] originatorSignatureValue)
Creates an ContentReference from given content type, content identifier and originator signature value. |
Method Summary | |
---|---|
void |
decode(ASN1Object obj)
Decodes the given ASN.1 ContentReference object for parsing
the internal structure. |
boolean |
equals(java.lang.Object obj)
Compares this ContentReference to the specified object. |
ObjectID |
getAttributeType()
Returns the OID identifying the ContentReference attribute type. |
ObjectID |
getContentType()
Returns the content type. |
byte[] |
getOriginatorSignatureValue()
Returns the originator signature value. |
ContentIdentifier |
getSignedContentIdentifier()
Returns the signed content identifier. |
int |
hashCode()
Returns a hashcode for this ContentReference. |
ASN1Object |
toASN1Object()
Returns this ContentReference as ASN1Object. |
java.lang.String |
toString()
Returns a string representation of this ContentReference. |
Methods inherited from class iaik.smime.ess.ESSAttributeValue |
---|
multipleAllowed |
Methods inherited from class iaik.asn1.structures.AttributeValue |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ObjectID oid
ContentReference
attribute.
The corresponding OID string is "1.2.840.113549.1.9.16.2.10".
Constructor Detail |
---|
public ContentReference()
public ContentReference(ObjectID contentType, ContentIdentifier signedContentIdentifier, byte[] originatorSignatureValue)
contentType
- the content type of the of the SignedData
to be linked tosignedContentIdentifier
- the signed content identifier
of the SignedData to be linked tooriginatorSignatureValue
- the signature value of the
SignedData to be linked topublic ContentReference(ASN1Object obj) throws CodingException
obj
- the ContentReference as ASN1Object
CodingException
Method Detail |
---|
public ObjectID getContentType()
public ContentIdentifier getSignedContentIdentifier()
public byte[] getOriginatorSignatureValue()
public boolean equals(java.lang.Object obj)
ContentReference
to the specified object.
equals
in class ESSAttributeValue
obj
- the object to compare this ContentReference
against.
true
, if the given object is equal to this
ContentReference
,
false
otherwisepublic int hashCode()
hashCode
in class ESSAttributeValue
public void decode(ASN1Object obj) throws CodingException
ContentReference
object for parsing
the internal structure.
obj
- the ContentReference as ASN1Object
CodingException
- if the encoding is invalidpublic ASN1Object toASN1Object()
public ObjectID getAttributeType()
getAttributeType
in class AttributeValue
public java.lang.String toString()
toString
in class AttributeValue
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |