|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.asn1.ASN1Sequence
public class ASN1Sequence
An ASN.1 sequence.
The input may be any valid BER encoding of an ASN.1 sequence. The output is always a constructed, definite-length encoding of the sequence, and will be a DER encoding if and only if the output of every component is a DER encoding (provided DER requirements with respect to default components are obeyed).
| Constructor Summary | |
|---|---|
ASN1Sequence()Makes a sequence with no components. |
|
ASN1Sequence(ASN1Object o)Makes a sequence with one component. |
|
ASN1Sequence(java.util.Collection<? extends ASN1Object> el)Makes a sequence with the given components. |
|
ASN1Sequence(java.io.InputStream is) |
|
ASN1Sequence(java.util.List<? extends ASN1Object> el) |
|
ASN1Sequence(java.util.Vector<? extends ASN1Object> el)Deprecated. use ASN1Sequence(List) |
|
| Method Summary | |
|---|---|
void |
addElement(ASN1Object o) |
ASN1Object |
elementAt(int n) |
java.util.Vector<ASN1Object> |
elements()Deprecated. use elementsAsList() |
java.util.ArrayList<ASN1Object> |
elementsAsList()Returns the components of this ASN.1 sequence, as a list, each element of which is an instance of ASN1Object. |
ASN1Object |
firstElement() |
ASN1Header |
getHeader() |
void |
input(java.io.InputStream is)Inputs this object from the specified input stream. |
ASN1Object |
lastElement() |
int |
length()Length of this object's encoding. |
static ASN1Header |
makeHeader(int len) |
void |
output(java.io.OutputStream os)Outputs this object to the specified output stream. |
int |
size()Returns the number of components of this ASN.1 sequence. |
java.lang.String |
toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ASN1Sequence()
public ASN1Sequence(ASN1Object o)
public ASN1Sequence(java.util.Vector<? extends ASN1Object> el)
ASN1Sequence(List)el - A vector which contains the components. Each element must be an instance of ASN1Object.public ASN1Sequence(java.util.List<? extends ASN1Object> el)
public ASN1Sequence(java.util.Collection<? extends ASN1Object> el)
el - A Collection which contains the components. Each element must be an instance of ASN1Object.
public ASN1Sequence(java.io.InputStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public ASN1Header getHeader()
getHeader in interface ASN1TaggedObjectpublic java.util.Vector<ASN1Object> elements()
elementsAsList()ASN1Object.elements in interface ASN1Constructedpublic java.util.ArrayList<ASN1Object> elementsAsList()
ASN1Object.elementsAsList in interface ASN1Constructedpublic int size()
size in interface ASN1Constructedpublic ASN1Object elementAt(int n)
elementAt in interface ASN1Constructedpublic ASN1Object firstElement()
public ASN1Object lastElement()
public void addElement(ASN1Object o)
public static ASN1Header makeHeader(int len)
public java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
throws java.io.IOException
Streamableinput in interface Streamablejava.io.IOExceptionpublic int length()
Streamablelength in interface Streamable
public void output(java.io.OutputStream os)
throws java.io.IOException
Streamableoutput in interface Streamablejava.io.IOException
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||