Class: SamlIdp::LogoutBuilder

Inherits:
Object
  • Object
show all
Includes:
Signable
Defined in:
lib/saml_idp/logout_builder.rb

Direct Known Subclasses

LogoutRequestBuilder, LogoutResponseBuilder

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Signable

included, #sign, #signed

Constructor Details

#initialize(response_id, issuer_uri, saml_slo_url, algorithm) ⇒ LogoutBuilder

Returns a new instance of LogoutBuilder.



11
12
13
14
15
16
# File 'lib/saml_idp/logout_builder.rb', line 11

def initialize(response_id, issuer_uri, saml_slo_url, algorithm)
  self.response_id = response_id
  self.issuer_uri = issuer_uri
  self.saml_slo_url = saml_slo_url
  self.algorithm = algorithm
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



9
10
11
# File 'lib/saml_idp/logout_builder.rb', line 9

def algorithm
  @algorithm
end

#issuer_uriObject

Returns the value of attribute issuer_uri.



7
8
9
# File 'lib/saml_idp/logout_builder.rb', line 7

def issuer_uri
  @issuer_uri
end

#response_idObject

Returns the value of attribute response_id.



6
7
8
# File 'lib/saml_idp/logout_builder.rb', line 6

def response_id
  @response_id
end

#saml_slo_urlObject

Returns the value of attribute saml_slo_url.



8
9
10
# File 'lib/saml_idp/logout_builder.rb', line 8

def saml_slo_url
  @saml_slo_url
end

Instance Method Details

#buildObject

this is an abstract base class.



19
20
21
# File 'lib/saml_idp/logout_builder.rb', line 19

def build
  raise "#{self.class} must implement build method"
end

#encodedObject



27
28
29
# File 'lib/saml_idp/logout_builder.rb', line 27

def encoded
  @encoded ||= encode
end

#rawObject



31
32
33
# File 'lib/saml_idp/logout_builder.rb', line 31

def raw
  build
end

#reference_idObject



23
24
25
# File 'lib/saml_idp/logout_builder.rb', line 23

def reference_id
  self.response_id
end