Class: Quickjs::CryptoKey

Inherits:
Object
  • Object
show all
Defined in:
lib/quickjs/crypto_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, extractable, algorithm, usages, key_data) ⇒ CryptoKey

Returns a new instance of CryptoKey.



7
8
9
10
11
12
13
# File 'lib/quickjs/crypto_key.rb', line 7

def initialize(type, extractable, algorithm, usages, key_data)
  @type = type
  @extractable = extractable
  @algorithm = algorithm
  @usages = usages
  @key_data = key_data
end

Instance Attribute Details

#algorithmObject (readonly)

Returns the value of attribute algorithm.



5
6
7
# File 'lib/quickjs/crypto_key.rb', line 5

def algorithm
  @algorithm
end

#extractableObject (readonly)

Returns the value of attribute extractable.



5
6
7
# File 'lib/quickjs/crypto_key.rb', line 5

def extractable
  @extractable
end

#key_dataObject (readonly)

Returns the value of attribute key_data.



5
6
7
# File 'lib/quickjs/crypto_key.rb', line 5

def key_data
  @key_data
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/quickjs/crypto_key.rb', line 5

def type
  @type
end

#usagesObject (readonly)

Returns the value of attribute usages.



5
6
7
# File 'lib/quickjs/crypto_key.rb', line 5

def usages
  @usages
end