Package com.hierynomus.asn1.types.string
Class ASN1String<T>
- java.lang.Object
-
- com.hierynomus.asn1.types.ASN1Object<T>
-
- com.hierynomus.asn1.types.string.ASN1String<T>
-
- All Implemented Interfaces:
ASN1Constructed
,ASN1Primitive
,java.lang.Iterable<ASN1Object>
- Direct Known Subclasses:
ASN1BitString
,ASN1OctetString
public abstract class ASN1String<T> extends ASN1Object<T> implements ASN1Primitive, ASN1Constructed
An ASN.1 STRING type can either be expressed as a Primitive encoded or Constructed encoded sequence.
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
valueBytes
-
Fields inherited from class com.hierynomus.asn1.types.ASN1Object
tag
-
-
Constructor Summary
Constructors Constructor Description ASN1String(ASN1Tag<?> tag, byte[] bytes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]
getValueBytes()
java.util.Iterator<ASN1Object>
iterator()
abstract int
length()
-
Methods inherited from class com.hierynomus.asn1.types.ASN1Object
equals, getTag, getValue, hashCode, toString, valueString
-
-
-
-
Constructor Detail
-
ASN1String
public ASN1String(ASN1Tag<?> tag, byte[] bytes)
-
-
Method Detail
-
iterator
public java.util.Iterator<ASN1Object> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
getValueBytes
public byte[] getValueBytes()
-
length
public abstract int length()
-
-