|
Oracle Security Developer Tools Crypto FIPS Java API Reference 11g (11.1.1) E10696-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1Set
public class ASN1Set
An ASN.1 set.
The input may be any valid BER encoding of an ASN.1 set. The output is always a constructed, definite-length encoding of the set.
Field Summary | |
---|---|
static int |
BER An encoding type. |
static int |
DER_SET An encoding type. |
static int |
DER_SET_OF An encoding type. |
Constructor Summary | |
---|---|
ASN1Set() Makes a new set with no elements. |
|
ASN1Set(ASN1Object o) Makes a set with one element. |
|
ASN1Set(java.util.Enumeration e) |
|
ASN1Set(java.io.InputStream is) |
|
ASN1Set(java.util.Vector el) Makes a set with the given elements. |
Method Summary | |
---|---|
void |
addElement(ASN1Object o) |
ASN1Object |
elementAt(int n) |
java.util.Vector |
elements() Returns the components of this ASN.1 set, as a vector, each element of which is an instance of ASN1Object . |
ASN1Object |
firstElement() |
int |
getEncodingType() |
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. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
void |
setEncodingType(int encodingType) Sets the encoding type to one of BER , DER_SET or DER_SET_OF (default is DER_SET_OF ). |
int |
size() Returns the number of components of this ASN.1 set. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BER
public static final int DER_SET
public static final int DER_SET_OF
Constructor Detail |
---|
public ASN1Set()
public ASN1Set(ASN1Object o)
public ASN1Set(java.util.Vector el)
el
- A vector which contains the components. Each element must be an instance of ASN1Object
.public ASN1Set(java.util.Enumeration e)
public ASN1Set(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
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)
BER
, DER_SET
or DER_SET_OF
(default is DER_SET_OF
).public int getEncodingType()
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
|
Oracle Security Developer Tools Crypto FIPS Java API Reference 11g (11.1.1) E10696-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |