Class: Lyrebird::Encryption

Inherits:
Object
  • Object
show all
Defined in:
lib/lyrebird/encryption.rb

Instance Method Summary collapse

Constructor Details

#initialize(element, certificate) ⇒ Encryption

Returns a new instance of Encryption.



5
6
7
8
9
10
# File 'lib/lyrebird/encryption.rb', line 5

def initialize(element, certificate)
  @element = element
  @certificate = certificate
  @doc = element.document
  @aes_key = SecureRandom.random_bytes(32)
end

Instance Method Details

#encryptObject



12
13
14
# File 'lib/lyrebird/encryption.rb', line 12

def encrypt
  build_encrypted_assertion
end