KeyOperation object

Deprecated.A KeyOperation object is returned by SubtleCrypto's generateKey, deriveKey, importKey, exportKey, wrapKey, and unwrapKey methods.

Warning  As of Microsoft Edge, KeyOperation has been replaced by a Promise object as the return value for cryptographic key operations. See Web Cryptography API updates for more info.
IE11

 

DOM Information

Inheritance Hierarchy

The KeyOperation does not inherit from any class or interface.

Members

The KeyOperation object has these types of members:

Events

The KeyOperation object has these events.

EventDescription
oncomplete

Deprecated.Fires when the current cryptographic operation completes.

onerror

Deprecated.Fires when the current cryptographic operation encounters an error.

 

Methods

The KeyOperation object has these methods.

MethodDescription
addEventListener

Registers an event handler for the specified event type.

dispatchEvent

Sends an event to the current element.

removeEventListener

Removes an event handler that the addEventListener method registered.

 

Properties

The KeyOperation object has these properties.

PropertyAccess typeDescription

result

Read-only

The result of the current cryptographic operation.

 

 

 

Show: