Trait

org.scalajs.dom.crypto

SubtleCrypto

Related Doc: package crypto

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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.

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

    Permalink

    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

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

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

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

    Permalink

    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

  14. def finalize(): Unit

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

    Permalink

    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.

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

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

    Permalink
    Definition Classes
    Object
  18. def hashCode(): Int

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

    Permalink

    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.

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

    Permalink

    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.

  21. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  30. def toString(): String

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

    Permalink

    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.

  32. def valueOf(): Any

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

    Permalink

    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

  34. final def wait(): Unit

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

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

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

    Permalink

    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