Package com.itextpdf.bouncycastle.asn1
Class ASN1SequenceBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
-
- com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
-
- com.itextpdf.bouncycastle.asn1.ASN1SequenceBC
-
- All Implemented Interfaces:
IASN1Encodable
,IASN1Primitive
,IASN1Sequence
- Direct Known Subclasses:
DERSequenceBC
public class ASN1SequenceBC extends ASN1PrimitiveBC implements IASN1Sequence
Wrapper class forASN1Sequence
.
-
-
Constructor Summary
Constructors Constructor Description ASN1SequenceBC(java.lang.Object obj)
Creates new wrapper instance forASN1Sequence
.ASN1SequenceBC(org.bouncycastle.asn1.ASN1Sequence sequence)
Creates new wrapper instance forASN1Sequence
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1Sequence
getASN1Sequence()
Gets actual org.bouncycastle object being wrapped.IASN1Encodable
getObjectAt(int i)
Calls actualgetObjectAt
method for the wrapped ASN1Sequence object.java.util.Enumeration
getObjects()
Calls actualgetObjects
method for the wrapped ASN1Sequence object.int
size()
Calls actualsize
method for the wrapped ASN1Sequence object.IASN1Encodable[]
toArray()
Calls actualtoArray
method for the wrapped ASN1Sequence object.-
Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
getEncoded, getEncoded, getPrimitive
-
Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive
getEncoded, getEncoded
-
-
-
-
Constructor Detail
-
ASN1SequenceBC
public ASN1SequenceBC(org.bouncycastle.asn1.ASN1Sequence sequence)
Creates new wrapper instance forASN1Sequence
.- Parameters:
sequence
-ASN1Sequence
to be wrapped
-
ASN1SequenceBC
public ASN1SequenceBC(java.lang.Object obj)
Creates new wrapper instance forASN1Sequence
.- Parameters:
obj
- to getASN1Sequence
instance to be wrapped
-
-
Method Detail
-
getASN1Sequence
public org.bouncycastle.asn1.ASN1Sequence getASN1Sequence()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1Sequence
.
-
getObjectAt
public IASN1Encodable getObjectAt(int i)
Calls actualgetObjectAt
method for the wrapped ASN1Sequence object.- Specified by:
getObjectAt
in interfaceIASN1Sequence
- Parameters:
i
- index- Returns:
IASN1Encodable
wrapped ASN1Encodable object.
-
getObjects
public java.util.Enumeration getObjects()
Calls actualgetObjects
method for the wrapped ASN1Sequence object.- Specified by:
getObjects
in interfaceIASN1Sequence
- Returns:
- received objects.
-
size
public int size()
Calls actualsize
method for the wrapped ASN1Sequence object.- Specified by:
size
in interfaceIASN1Sequence
- Returns:
- sequence size.
-
toArray
public IASN1Encodable[] toArray()
Calls actualtoArray
method for the wrapped ASN1Sequence object.- Specified by:
toArray
in interfaceIASN1Sequence
- Returns:
- array of wrapped ASN1Encodable objects.
-
-