Token class

Constructors

Token({required String id, required JSObject subtleCrypto, required JSObject softwareBackedSubtleCrypto})
Token.fromJS(Token _wrapped)

Properties

hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
Uniquely identifies this Token. Static IDs are "user" and "system", referring to the platform's user-specific and the system-wide hardware token, respectively. Any other tokens (with other identifiers) might be returned by enterprise.platformKeys.getTokens.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
softwareBackedSubtleCrypto ↔ JSObject
Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys. Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with modulusLength up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
getter/setter pair
subtleCrypto ↔ JSObject
Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed. Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with modulusLength up to 2048 and ECDSA with namedCurve P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely. Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
getter/setter pair
toJS → Token
no setter

Methods

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