Package net.aifusion.asn
Class SetValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.SetValue
Class to manage a set of value
- Author:
- Sharad Singhal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SetValue
create
(byte[] buffer, int blen, int cursor) Create a set valueboolean
Get the value of this sequencebyte[]
Get the encoded value for this ASN.1 value.int
hashCode()
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
-
SetValue
Create a value set- Parameters:
values
- - values to include in set
-
-
Method Details
-
create
Create a set value- Parameters:
buffer
- - input bufferblen
- - length of input buffercursor
- - current cursor in the buffer- Returns:
- - Set value
-
getContainedValues
Get the value of this sequence- Returns:
- - list containing the values in this Set
-
getEncodedValue
public byte[] getEncodedValue()Description copied from class:AsnValue
Get the encoded value for this ASN.1 value. This method should be implemented by subclasses to provide the encoded ASN.1 value- Specified by:
getEncodedValue
in classAsnValue
- Returns:
- byte [] containing encoded value for this ASN.1 value (including tag, length, content)
-
toAsnString
Description copied from class:AsnValue
Get a (semi) ASN.1 notation for this value.- Overrides:
toAsnString
in classAsnValue
- Parameters:
prefix
- - prefix to add to each line- Returns:
- - string containing the ASN.1 value
-
toString
-
hashCode
public int hashCode() -
equals
-