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
Wrapper class for
ASN1Sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionASN1SequenceBC(Object obj) Creates new wrapper instance forASN1Sequence.ASN1SequenceBC(org.bouncycastle.asn1.ASN1Sequence sequence) Creates new wrapper instance forASN1Sequence. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1SequenceGets actual org.bouncycastle object being wrapped.getObjectAt(int i) Calls actualgetObjectAtmethod for the wrapped ASN1Sequence object.Calls actualgetObjectsmethod for the wrapped ASN1Sequence object.intsize()Calls actualsizemethod for the wrapped ASN1Sequence object.toArray()Calls actualtoArraymethod for the wrapped ASN1Sequence object.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
getEncoded, getEncoded, getPrimitiveMethods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1PrimitiveMethods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive
getEncoded, getEncoded
-
Constructor Details
-
ASN1SequenceBC
public ASN1SequenceBC(org.bouncycastle.asn1.ASN1Sequence sequence) Creates new wrapper instance forASN1Sequence.- Parameters:
-
sequence-ASN1Sequenceto be wrapped
-
ASN1SequenceBC
Creates new wrapper instance forASN1Sequence.- Parameters:
-
obj- to getASN1Sequenceinstance to be wrapped
-
-
Method Details
-
getASN1Sequence
public org.bouncycastle.asn1.ASN1Sequence getASN1Sequence()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1Sequence.
-
getObjectAt
Calls actualgetObjectAtmethod for the wrapped ASN1Sequence object.- Specified by:
-
getObjectAtin interfaceIASN1Sequence - Parameters:
-
i- index - Returns:
-
IASN1Encodablewrapped ASN1Encodable object.
-
getObjects
Calls actualgetObjectsmethod for the wrapped ASN1Sequence object.- Specified by:
-
getObjectsin interfaceIASN1Sequence - Returns:
- received objects.
-
size
public int size()Calls actualsizemethod for the wrapped ASN1Sequence object.- Specified by:
-
sizein interfaceIASN1Sequence - Returns:
- sequence size.
-
toArray
Calls actualtoArraymethod for the wrapped ASN1Sequence object.- Specified by:
-
toArrayin interfaceIASN1Sequence - Returns:
- array of wrapped ASN1Encodable objects.
-