Package net.aifusion.asn
Class UTCTimeValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.UTCTimeValue
Class to represent a UTC Time String
- Author:
- Sharad Singhal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UTCTimeValue
create
(byte[] buffer, int blen, int cursor) Create a UTC Time valueboolean
byte[]
Get the encoded value for this ASN.1 value.getValue()
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
-
UTCTimeValue
Create a UTC time value- Parameters:
value
- - string value in UTC time format ("yyMMddHHmmssZ")- See Also:
-
-
Method Details
-
create
Create a UTC Time value- Parameters:
buffer
- - input bufferblen
- - length of the input buffercursor
- - cursor within the buffer- Returns:
- - UTC time value
-
getValue
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-