public class ContentReference
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
Constructor and Description |
---|
ContentReference(oracle.security.crypto.asn1.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.
|
oracle.security.crypto.asn1.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(oracle.security.crypto.asn1.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.IOException
public ContentReference(oracle.security.crypto.asn1.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.Object
true
this object is equal to the specified object; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public oracle.security.crypto.asn1.ASN1ObjectID getContentType()
public void setContentType(oracle.security.crypto.asn1.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
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
os
- The output stream.java.io.IOException
- An I/O error occurred.public int length()
length
in interface oracle.security.crypto.util.Streamable