Package net.aifusion.asn
Class SequenceValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.SequenceValue
Class to wrap an ASN1 Sequence value
- Author:
- Sharad Singhal
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceValue(List<AsnValue> values) Construct a sequence from a list of ASN.1 values -
Method Summary
Modifier and TypeMethodDescriptionstatic SequenceValuecreate(byte[] buffer, int blen, int cursor) Create a sequence value from a serialized formbooleanGet the values contained in this sequencebyte[]Get the encoded value for this ASN.1 value.inthashCode()toAsnString(String prefix) Get a (semi) ASN.1 notation for this value.toString()Methods inherited from class net.aifusion.asn.AsnValue
getLength, getTag, getTagClass, getTagEncoding, getTagNumber, toHex, toHex, toHex, toHex
-
Constructor Details
-
SequenceValue
Construct a sequence from a list of ASN.1 values- Parameters:
values- values to be included in the sequence
-
-
Method Details
-
create
Create a sequence value from a serialized form- Parameters:
buffer- - input bufferblen- - length of the input buffercursor- - starting location in the input buffer- Returns:
- - constructed sequence value
-
getContainedValues
Get the values contained in this sequence- Returns:
- - list containing the values in this sequence
-
getEncodedValue
public byte[] getEncodedValue()Description copied from class:AsnValueGet the encoded value for this ASN.1 value. This method should be implemented by subclasses to provide the encoded ASN.1 value- Specified by:
getEncodedValuein classAsnValue- Returns:
- byte [] containing encoded value for this ASN.1 value (including tag, length, content)
-
toAsnString
Description copied from class:AsnValueGet a (semi) ASN.1 notation for this value.- Overrides:
toAsnStringin classAsnValue- Parameters:
prefix- - prefix to add to each line- Returns:
- - string containing the ASN.1 value
-
toString
-
hashCode
public int hashCode() -
equals
-