|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1GenericPrimitive
A class for ASN.1 DER primitive types with an unrecognized tag or a non-universal class.
Constructor Summary | |
ASN1GenericPrimitive(ASN1Object o, int tag) Creates a new ASN.1 primitive object, with the specified tag and the context-specific tag class, which has the given ASN.1 object as its underlying value. |
|
ASN1GenericPrimitive(ASN1Object o, int tag, int tagClass) Creates a new ASN.1 primitive object, with the specified tag and tag class, which has the given ASN.1 object as its underlying value. |
|
ASN1GenericPrimitive(byte[] body, int tag) Creates a new ASN.1 generic primitive object, with the given tag and the context-specific tag class. |
|
ASN1GenericPrimitive(byte[] body, int tag, int tagClass) Creates a new ASN.1 generic primitive object, with the given tag and tag class. |
|
ASN1GenericPrimitive(java.io.InputStream is) |
|
ASN1GenericPrimitive(java.io.InputStream is, int tag) |
|
ASN1GenericPrimitive(java.io.InputStream is, int tag, int tagClass) |
Method Summary | |
byte[] |
getBody() |
ASN1Header |
getHeader() |
int |
getTag() |
int |
getTagClass() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
int |
length() Length of this object's encoding. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
ASN1Object |
withTag(int tag) Creates a new ASN.1 object, which has the same body as this one, but with the given tag and UNIVERSAL class. |
ASN1Object |
withTag(int tag, int tagClass) Creates a new ASN.1 object, which has the same body as this one, but with the given tag and tag class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ASN1GenericPrimitive(byte[] body, int tag)
public ASN1GenericPrimitive(byte[] body, int tag, int tagClass)
public ASN1GenericPrimitive(ASN1Object o, int tag)
o
- the underlying value, which must be a primitive-encoded ASN.1 objecttag
- the tagpublic ASN1GenericPrimitive(ASN1Object o, int tag, int tagClass)
o
- the underlying value, which must be a primitive-encoded ASN.1 objecttag
- the tagtagClass
- the tag classpublic ASN1GenericPrimitive(java.io.InputStream is) throws java.io.IOException
public ASN1GenericPrimitive(java.io.InputStream is, int tag) throws java.io.IOException
public ASN1GenericPrimitive(java.io.InputStream is, int tag, int tagClass) throws java.io.IOException
Method Detail |
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
public int getTag()
public int getTagClass()
public byte[] getBody()
public ASN1Object withTag(int tag) throws java.io.IOException
java.io.IOException
public ASN1Object withTag(int tag, int tagClass) throws java.io.IOException
java.io.IOException
public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
Streamable
output
in interface Streamable
java.io.IOException
public int length()
Streamable
length
in interface Streamable
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |