main
1# frozen_string_literal: true
2
3module Saml
4 module Kit
5 module Builders
6 # This class is responsible for encrypting an Assertion.
7 # {include:file:lib/saml/kit/builders/templates/encrypted_assertion.builder}
8 class EncryptedAssertion
9 include XmlTemplatable
10 extend Forwardable
11
12 attr_reader :assertion
13 attr_accessor :destination
14 def_delegators :@response_builder,
15 :configuration,
16 :encryption_certificate
17
18 def_delegators :@assertion,
19 :default_name_id_format,
20 :default_name_id_format=,
21 :destination=,
22 :embed_signature,
23 :issuer=,
24 :now=
25
26 def initialize(response_builder, assertion)
27 @response_builder = response_builder
28 @assertion = assertion
29 @encrypt = true
30 end
31 end
32 end
33 end
34end