public abstract class ASN1Set extends ASN1Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
set |
BER, DERAPPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING| Constructor and Description |
|---|
ASN1Set() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addObject(DEREncodable obj) |
(package private) boolean |
asn1Equals(DERObject o) |
(package private) abstract void |
encode(DEROutputStream out) |
private byte[] |
getEncoded(DEREncodable obj) |
static ASN1Set |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return an ASN1 set from a tagged object.
|
static ASN1Set |
getInstance(java.lang.Object obj)
return an ASN1Set from the given object.
|
DEREncodable |
getObjectAt(int index)
return the object at the set postion indicated by index.
|
java.util.Enumeration |
getObjects() |
int |
hashCode() |
private boolean |
lessThanOrEqual(byte[] a,
byte[] b)
return true if a <= b (arrays are assumed padded with zeros).
|
ASN1SetParser |
parser() |
int |
size()
return the number of objects in this set.
|
protected void |
sort() |
java.lang.String |
toString() |
equals, fromByteArraytoASN1ObjectgetDEREncoded, getDERObject, getEncoded, getEncodedpublic static ASN1Set getInstance(java.lang.Object obj)
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public static ASN1Set getInstance(ASN1TaggedObject obj, boolean explicit)
obj - the tagged object.explicit - true if the object is meant to be explicitly tagged
false otherwise.java.lang.IllegalArgumentException - if the tagged object cannot
be converted.public java.util.Enumeration getObjects()
public DEREncodable getObjectAt(int index)
index - the set number (starting at zero) of the objectpublic int size()
public ASN1SetParser parser()
public int hashCode()
hashCode in class ASN1Objectboolean asn1Equals(DERObject o)
asn1Equals in class ASN1Objectprivate boolean lessThanOrEqual(byte[] a,
byte[] b)
private byte[] getEncoded(DEREncodable obj)
protected void sort()
protected void addObject(DEREncodable obj)
abstract void encode(DEROutputStream out) throws java.io.IOException
encode in class ASN1Objectjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.