|
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1GenericConstructed
public class ASN1GenericConstructed
A class for ASN.1 DER constructed types with an unrecognized tag or a non-universal tag class (e.g., implicitly tagged sequences and sets, or explicitly tagged wrappers).
ASN1Utils.addImplicitTag(oracle.security.crypto.asn1.ASN1Object, int)
Constructor Summary | |
---|---|
ASN1GenericConstructed(ASN1Object o, int tag) Construct an EXPLICIT wrapper around an object with the given tag and the context-specific tag class. |
|
ASN1GenericConstructed(ASN1Object o, int tag, int tagClass) Construct an EXPLICIT wrapper around an object with the given tag and tag class. |
|
ASN1GenericConstructed(byte[] encoded) |
|
ASN1GenericConstructed(java.io.InputStream is) |
|
ASN1GenericConstructed(int tag) Creates a new, empty ASN.1 constructed object (that is, one with no components), which has the given tag and the context-specific tag class. |
|
ASN1GenericConstructed(int tag, int tagClass) Creates a new, empty ASN.1 structure (that is, with no components), with the given tag and tag class. |
|
ASN1GenericConstructed(java.util.Vector el, int tag) Creates a new ASN.1 constructed object, with the given components vector and tag, and the context-specific tag class. |
|
ASN1GenericConstructed(java.util.Vector el, int tag, int tagClass) Creates a new ASN.1 constructed object, with the given components vector, tag, and tag class. |
Method Summary | |
---|---|
void |
addElement(ASN1Object o) Appends the given object to this ASN.1 constructed object, making it the last component. |
ASN1Object |
elementAt(int n) Returns the component of this ASN.1 constructed object at the specified index. |
java.util.Vector |
elements() Returns the components of this ASN.1 constructed object, as a vector, each element of which is an instance of ASN1Object . |
ASN1Object |
firstElement() Returns the first component of this ASN.1 constructed object. |
int |
getEncodingType() Returns the encoding type. |
ASN1Header |
getHeader() |
int |
getTag() |
int |
getTagClass() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
ASN1Object |
lastElement() Returns the last component of this ASN.1 constructed object. |
int |
length() Length of this object's encoding. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
static void |
outputValue(java.io.OutputStream os, java.util.Vector elements, int tag) |
static void |
outputValue(java.io.OutputStream os, java.util.Vector elements, int tag, int tagClass) |
void |
setEncodingType(int encodingType) Set the encoding type. |
int |
size() Returns the number of components of this ASN.1 constructed object. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASN1GenericConstructed(int tag)
public ASN1GenericConstructed(int tag, int tagClass)
public ASN1GenericConstructed(ASN1Object o, int tag)
public ASN1GenericConstructed(ASN1Object o, int tag, int tagClass)
public ASN1GenericConstructed(java.util.Vector el, int tag)
public ASN1GenericConstructed(java.util.Vector el, int tag, int tagClass)
el
- A vector which contains the components. Each element must be an instance of ASN1Object
.public ASN1GenericConstructed(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public ASN1GenericConstructed(byte[] encoded) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
public int getTag()
public int getTagClass()
public java.util.Vector elements()
ASN1Object
.elements
in interface ASN1Constructed
public int size()
size
in interface ASN1Constructed
public ASN1Object elementAt(int n)
elementAt
in interface ASN1Constructed
public ASN1Object firstElement()
public ASN1Object lastElement()
public void addElement(ASN1Object o)
public void setEncodingType(int encodingType)
public int getEncodingType()
setEncodingType(int)
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public int length()
Streamable
length
in interface Streamable
public void output(java.io.OutputStream os) throws java.io.IOException
Streamable
output
in interface Streamable
java.io.IOException
public static void outputValue(java.io.OutputStream os, java.util.Vector elements, int tag) throws java.io.IOException
java.io.IOException
public static void outputValue(java.io.OutputStream os, java.util.Vector elements, int tag, int tagClass) throws java.io.IOException
java.io.IOException
|
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |