ASN1IpAddress class
An ASN1 IP Address. This is length-4 array of character codes.
- Inheritance
-
- Object
- ASN1Object
- ASN1OctetString
- ASN1IpAddress
Constructors
-
ASN1IpAddress.new(List<
int> octets, {int tag = IP_ADDRESS}) - Create an ASN1IpAddress initialized with a String or a List<int>. Optionally override the tag
- ASN1IpAddress.fromBytes(Uint8List bytes)
- Create an ASN1IpAddress from an encoded list of bytes.
Properties
- encodedBytes → Uint8List
-
Get the encoded byte representation for this object. This can trigger
calling the subclasss
_encode
method if the object has not yet been encodedno setterinherited - extendedTag → int?
-
no setterinherited
- hasExtendedTag → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEncoded → bool
-
Check if the encoding is ready.
no setterinherited
- octets ↔ Uint8List
-
The decoded string value
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringValue → String
-
Get the String value of this octet string.
Note this uses Dart's default decoding of bytes to String (UTF-16).
Be careful with this method as it may not be the correct encoding for
your purposes.
@deprecated use utf8StringValue or utf16StringValue instead
no setteroverride
- tag → int
-
The BER tag representing this object
finalinherited
- totalEncodedByteLength → int
-
The total length of this object in bytes - including its value
bytes and the encoded tag and length bytes.
no setterinherited
- utf16StringValue → String
-
no setterinherited
- utf8StringValue → String
-
get the String value assuming utf-8 encoding of the octet bytes.
UTF-8 is a common encoding for ldap servers
no setterinherited
Methods
-
contentBytes(
) → Uint8List -
Returns the real content of a tag. This might be equal to valueBytes for some tags.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHexString(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
override
-
valueBytes(
) → Uint8List -
Return just the value bytes.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromComponents(
List< int> components, {int tag = IP_ADDRESS}) → ASN1IpAddress -
Create an ASN1IpAddress from a list of int IP Address octets
e.g.
192, 168, 1, 1
-
fromComponentString(
String path, {int tag = IP_ADDRESS}) → ASN1IpAddress - Create an ASN1IpAddress from an IP Address String such as '192.168.1.1'