public class ContentReference
extends java.lang.Object
| Constructor and Description |
|---|
ContentReference(ASN1ObjectID contentType,
byte[] signedContentIdentifier,
byte[] originatorSignatureValue)
Create a
ContentReference with the given content type, content identifier and
originator signature value. |
ContentReference(java.io.InputStream is)
Create a
ContentReference by reading from the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates if the object equals the specified object.
|
ASN1ObjectID |
getContentType()
Returns the content type.
|
byte[] |
getOriginatorSignatureValue()
Returns the originator signature value.
|
byte[] |
getSignedContentIdentifier()
Returns the signed content identifier.
|
int |
hashCode()
Return the hash code for this object.
|
void |
input(java.io.InputStream is) |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Output this object's encoding to the specified output stream.
|
void |
setContentType(ASN1ObjectID contentType)
Set the content type.
|
void |
setOriginatorSignatureValue(byte[] originatorSignatureValue)
Sets the originator signature value.
|
void |
setSignedContentIdentifier(byte[] signedContentIdentifier)
Sets the signed content identifier.
|
public ContentReference(java.io.InputStream is)
throws java.io.IOException
ContentReference by reading from the specified input stream.is - The input stream.java.io.IOExceptionpublic ContentReference(ASN1ObjectID contentType,
byte[] signedContentIdentifier,
byte[] originatorSignatureValue)
ContentReference with the given content type, content identifier and
originator signature value.contentType - The content type identifier.signedContentIdentifier - The signed content identifier.originatorSignatureValue - The originator signature value.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue this object is equal to the specified object; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic ASN1ObjectID getContentType()
public void setContentType(ASN1ObjectID contentType)
contentType - The content type identifier.public byte[] getSignedContentIdentifier()
public void setSignedContentIdentifier(byte[] signedContentIdentifier)
signedContentIdentifier - The signed content identifier.public byte[] getOriginatorSignatureValue()
public void setOriginatorSignatureValue(byte[] originatorSignatureValue)
originatorSignatureValue - The originator signature value.public void input(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void output(java.io.OutputStream os)
throws java.io.IOException
os - The output stream.java.io.IOException - An I/O error occurred.public int length()