public abstract class ASN1Sequence extends ASN1Object
BER, DER
APPLICATION, 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 |
---|
ASN1Sequence() |
Modifier and Type | Method and Description |
---|---|
protected void |
addObject(DEREncodable obj) |
static ASN1Sequence |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return an ASN1 sequence from a tagged object.
|
static ASN1Sequence |
getInstance(Object obj)
return an ASN1Sequence from the given object.
|
DEREncodable |
getObjectAt(int index)
return the object at the sequence position indicated by index.
|
Enumeration |
getObjects() |
int |
hashCode() |
ASN1SequenceParser |
parser() |
int |
size()
return the number of objects in this sequence.
|
String |
toString() |
equals, fromByteArray
toASN1Object
getDEREncoded, getDERObject, getEncoded, getEncoded
public static ASN1Sequence getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public static ASN1Sequence getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object.explicit
- true if the object is meant to be explicitly tagged,
false otherwise.IllegalArgumentException
- if the tagged object cannot
be converted.public Enumeration getObjects()
public ASN1SequenceParser parser()
public DEREncodable getObjectAt(int index)
index
- the sequence number (starting at zero) of the objectpublic int size()
public int hashCode()
hashCode
in class ASN1Object
protected void addObject(DEREncodable obj)
Copyright © 2015. All rights reserved.