org.scalajs.dom.crypto

SubtleCrypto

trait SubtleCrypto extends Object

w3c ¶14 Subtle Crytpo interface

The SubtleCrypto interface represents a set of cryptographic primitives. It is available via the Crypto.subtle properties available in a window context (via Window.crypto).

MDN

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SubtleCrypto
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def decrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): Promise[Any]

    Returns a Promise of the clear data corresponding to the encrypted text, algorithm and key given as parameters.

    Returns a Promise of the clear data corresponding to the encrypted text, algorithm and key given as parameters. MDN

    Defined at ¶14.3.2 The decrypt method

  9. def deriveBits(algorithm: AlgorithmIdentifier, baseKey: CryptoKey, length: Double): Promise[Any]

    Returns a Promise of a newly generated buffer of pseudo-random bits derivated from a master key and a specific algorithm given as parameters.

    Returns a Promise of a newly generated buffer of pseudo-random bits derivated from a master key and a specific algorithm given as parameters. MDN

    Defined at ¶14.3.8 The deriveBits method

  10. def deriveKey(algorithm: AlgorithmIdentifier, baseKey: CryptoKey, derivedKeyType: KeyAlgorithmIdentifier, extractable: Boolean, keyUsages: Array[KeyUsage]): Promise[Any]

    Returns a Promise of a newly generated CryptoKey derivated from a master key and a specific algorithm given as parameters.

    Returns a Promise of a newly generated CryptoKey derivated from a master key and a specific algorithm given as parameters. MDF

    Defined at ¶14.3.7 The deriveKey method

    We are being a bit more precise than the official definition by requiring KeyAlgorithmIdentifier for derivedKeyType

  11. def digest(algorithm: HashAlgorithmIdentifier, data: BufferSource): Promise[Any]

    Returns a Promise of a digest generated from the algorithm and text given as parameters.

    Returns a Promise of a digest generated from the algorithm and text given as parameters. MDN

    Defined at ¶14.3.5 The digest method We are a bit more precise than the official definition by requiring a HashAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm parameter.

  12. def encrypt(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): Promise[Any]

    Returns a Promise of the encrypted data corresponding to the clear text, algorithm and key given as parameters.

    Returns a Promise of the encrypted data corresponding to the clear text, algorithm and key given as parameters. MDN

    Defined at ¶14.3.1 The encrypt method

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def exportKey(format: KeyFormat, key: CryptoKey): Promise[Any]

    Returns a Promise of a buffer containing the key in the format requested.

    Returns a Promise of a buffer containing the key in the format requested.

    Defined at ¶14.3.10 The exportKey method

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generateKey(algorithm: KeyAlgorithmIdentifier, extractable: Boolean, keyUsages: Array[KeyUsage]): Promise[Any]

    Returns a Promise of a newly generated CryptoKey, for symmetrical algorithms, or a CryptoKeyPair, containing two newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability given as parameters.

    Returns a Promise of a newly generated CryptoKey, for symmetrical algorithms, or a CryptoKeyPair, containing two newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability given as parameters. MDN

    Defined at ¶14.3.6 The generateKey method

    We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def importKey(format: KeyFormat, keyData: JsonWebKey, algorithm: KeyAlgorithmIdentifier, extractable: Boolean, keyUsages: Array[KeyUsage]): Promise[Any]

    Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters.

    Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters. MDN

    Defined at ¶14.3.9 The importKey method

    We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.

  22. def importKey(format: KeyFormat, keyData: BufferSource, algorithm: KeyAlgorithmIdentifier, extractable: Boolean, keyUsages: Array[KeyUsage]): Promise[Any]

    Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters.

    Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters. MDN

    Defined at ¶14.3.9 The importKey method

    We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  29. def sign(algorithm: AlgorithmIdentifier, key: CryptoKey, data: BufferSource): Promise[Any]

    Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters.

    Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters. MDN

    Defined at ¶14.3.3 The sign method

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toLocaleString(): String

    Definition Classes
    Object
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def unwrapKey(format: String, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: Boolean, keyUsages: Array[KeyUsage]): Promise[Any]

    Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter.

    Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter. MDN

    Defined at ¶14.3.12 The unwrapKey method

    We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier.

  34. def valueOf(): Any

    Definition Classes
    Object
  35. def verify(algorithm: AlgorithmIdentifier, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise[Any]

    Returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm and key also given as parameters.

    Returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm and key also given as parameters. MDN

    Defined at ¶14.3.4 The verify method

  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier): Promise[Any]

    Returns a Promise of a wrapped symmetric key for usage (transfer, storage) in unsecure environments.

    Returns a Promise of a wrapped symmetric key for usage (transfer, storage) in unsecure environments. The wrapped buffer returned is in the format given in parameters, and contained the key wrapped by the give wrapping key with the given algorithm.

    Defined at ¶14.3.11 The wrapKey method

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped