public class ContentHints
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Constructor and Description | 
|---|
ContentHints(oracle.security.crypto.asn1.ASN1ObjectID contentType)
Create a  
ContentHints with the given content type. | 
ContentHints(oracle.security.crypto.asn1.ASN1ObjectID contentType, java.lang.String contentDescription)
Create a  
ContentHints with the given content type and content description string. | 
ContentHints(java.io.InputStream is)
Create a  
ContentHints 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. 
 | 
java.lang.String | 
getContentDescription()
Returns the content description. 
 | 
oracle.security.crypto.asn1.ASN1ObjectID | 
getContentType()
Returns the content type. 
 | 
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 | 
setContentDescription(java.lang.String contentDescription)
Sets the content description. 
 | 
void | 
setContentType(oracle.security.crypto.asn1.ASN1ObjectID contentType)
Set the content type. 
 | 
public ContentHints(java.io.InputStream is)
             throws java.io.IOException
ContentHints by reading from the specified input stream.is - The input stream.java.io.IOExceptionpublic ContentHints(oracle.security.crypto.asn1.ASN1ObjectID contentType)
ContentHints with the given content type.contentType - The content type identifier.
public ContentHints(oracle.security.crypto.asn1.ASN1ObjectID contentType,
                    java.lang.String contentDescription)
ContentHints with the given content type and content description string.contentType - The content type identifier.contentDescription - The content description string.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 oracle.security.crypto.asn1.ASN1ObjectID getContentType()
public void setContentType(oracle.security.crypto.asn1.ASN1ObjectID contentType)
contentType - The content type identifier.public java.lang.String getContentDescription()
public void setContentDescription(java.lang.String contentDescription)
contentDescription - The content description.
public void input(java.io.InputStream is)
           throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void output(java.io.OutputStream os)
            throws java.io.IOException
output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurred.public int length()
length in interface oracle.security.crypto.util.Streamable