public class TSAPolicyID
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
Constructor and Description |
---|
TSAPolicyID(oracle.security.crypto.asn1.ASN1ObjectID id)
Contructs a new TSAPolicyID object with the given OID.
|
TSAPolicyID(java.io.InputStream is)
Contructs a TSAPolicyID object by reading a DER-encoded TSAPolicyID object from the given input stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
oracle.security.crypto.asn1.ASN1ObjectID |
getID()
Returns the OID of this object.
|
void |
input(java.io.InputStream is)
Initializes this object by reading in a DER-encoded TSAPolicyID object from the given input stream.
|
int |
length()
Returns the length of the DER encoding of this object in bytes.
|
void |
output(java.io.OutputStream os)
Writes the DER encoding of this object to the given output stream.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public TSAPolicyID(java.io.InputStream is) throws java.io.IOException
is
- The input stream.If
- an I/O error occurs.java.io.IOException
public TSAPolicyID(oracle.security.crypto.asn1.ASN1ObjectID id) throws java.io.IOException
id
- The OID.java.io.IOException
- If an I/O error occurs.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
- If an I/O error occurs.public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
is
-java.io.IOException
- If an I/O error occurs.public int length()
length
in interface oracle.security.crypto.util.Streamable
public oracle.security.crypto.asn1.ASN1ObjectID getID()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The other object.public java.lang.String toString()
toString
in class java.lang.Object