BksKeyEntry class

Represents a key entry in a BKS keystore.

Inheritance

Constructors

BksKeyEntry({required String alias, required int timestamp, required String storeType, required int keyType, required String format, required String algorithm, required Uint8List encoded, List<BksTrustedCertEntry> certChain = const []})

Properties

algorithm String
The algorithm name.
final
alias String
The alias of this entry.
getter/setter pairinherited
certChain List<BksTrustedCertEntry>
Certificate chain associated with this key.
getter/setter pair
encoded Uint8List
The encoded key data.
final
format String
The format/encoding of the key (PKCS8, X.509, RAW).
final
hashCode int
The hash code for this object.
no setterinherited
keyType int
The type of key: private (0), public (1), or secret (2).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeType String
The type of the store this entry belongs to.
getter/setter pairinherited
timestamp int
The timestamp when this entry was created (milliseconds since epoch).
getter/setter pairinherited

Methods

decrypt(String password) → void
Decrypts this entry using the given password.
override
isDecrypted() bool
Returns true if this entry has been decrypted.
override
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

Static Methods

keyTypeToString(int type) String
Returns a string representation of the key type.