Package de.cardcontact.tlv
Class Sequence
- java.lang.Object
-
- de.cardcontact.tlv.TLV
-
- de.cardcontact.tlv.ConstructedTLV
-
- de.cardcontact.tlv.Sequence
-
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
Curve
,DirectoryAttribute
,ECParameters
,ECPrivateKeyTLV
,FieldID
,PrivateKeyAlgorithmIdentifier
,PrivateKeyInfo
public class Sequence extends ConstructedTLV
Class to implement ASN.1 SEQUENCE object- Author:
- Andreas Schwier (info@cardcontact.de)
-
-
Field Summary
-
Fields inherited from class de.cardcontact.tlv.ConstructedTLV
childs
-
Fields inherited from class de.cardcontact.tlv.TLV
alternateLengthFormat, name, tag
-
-
Constructor Summary
Constructors Constructor Description Sequence()
Create constructed TLV with Tag set to ASN.1 SEQUENCESequence(ParseBuffer pb)
Create object from parse buffer This should not be called directly.Sequence(TLV tlv)
Copy constructor Initialize with existing ConstructedTLV object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sequence
getInstance(TLV tlv)
Convert - if needed - the ConstructedTLV to a Sequencestatic Sequence
getInstance(TLV tlv, Tag et)
Check tag and convert - if needed - the ConstructedTLV to a Sequence-
Methods inherited from class de.cardcontact.tlv.ConstructedTLV
add, add, dump, findTag, get, getChildAt, getChildCount, getElements, getIndex, getLength, getParent, isLeaf, remove, toByteArray, valueToByteArray
-
Methods inherited from class de.cardcontact.tlv.TLV
dump, dumpSingleLine, factory, factory, factory, getBytes, getLengthFieldAsByteArray, getLengthFieldSize, getLengthFieldSizeHelper, getName, getSize, getTag, getValue, lengthFromByteArray, lengthToByteArray, setName, setTag, toString, useAlternateLengthEncoding
-
-
-
-
Constructor Detail
-
Sequence
public Sequence()
Create constructed TLV with Tag set to ASN.1 SEQUENCE
-
Sequence
public Sequence(ParseBuffer pb) throws TLVEncodingException
Create object from parse buffer This should not be called directly. Use TLV.factory() methods instead- Parameters:
pb
-- Throws:
TLVEncodingException
-
Sequence
public Sequence(TLV tlv) throws TLVEncodingException
Copy constructor Initialize with existing ConstructedTLV object. Does not perform a deep copy. The tag and list of contained objects is reassigned. Caution: If applied to a TLV object embedded in a complex structure remember to update the reference to this object in the parent node.- Parameters:
tlv
- ConstructedTLV- Throws:
TLVEncodingException
-
-
Method Detail
-
getInstance
public static Sequence getInstance(TLV tlv, Tag et) throws TLVEncodingException
Check tag and convert - if needed - the ConstructedTLV to a Sequence- Parameters:
tlv
-et
- et tag used in implicit encoding- Throws:
TLVEncodingException
-
getInstance
public static Sequence getInstance(TLV tlv) throws TLVEncodingException
Convert - if needed - the ConstructedTLV to a Sequence- Parameters:
tlv
-- Returns:
- Throws:
TLVEncodingException
-
-