PemCodec class

A Codec for encoding and decoding PEM blocks with a given PemLabel.

When decoding instances of this class will throw NoPemBlockFoundException if no PEM blocks are found. However, if multiple blocks are present the decoder will simply return the first.

Inheritance

Constructors

PemCodec(PemLabel label, {bool strict = false, bool unsafeIgnoreLabel = false})
Create a PemCodec for encoding/decoding PEM encoded strings with given label.

Properties

decoder Converter<String, List<int>>
Returns a Converter for decoding a single PEM block.
no setteroverride
encoder Converter<List<int>, String>
Return a Converter for decoding a single PEM block.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<String, List<int>>
Inverts this.
no setterinherited
label PemLabel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String encoded) List<int>
Decodes encoded data.
inherited
encode(List<int> input) String
Encodes input.
inherited
fuse<R>(Codec<String, R> other) Codec<List<int>, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited