class SamlIdp::LogoutBuilder

Attributes

algorithm[RW]
issuer_uri[RW]
response_id[RW]
saml_slo_url[RW]

Public Class Methods

new(response_id, issuer_uri, saml_slo_url, algorithm) click to toggle source
# 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

Public Instance Methods

encoded() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 27
def encoded
  @encoded ||= encode
end
raw() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 31
def raw
  build
end
reference_id() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 23
def reference_id
  self.response_id
end

Private Instance Methods

build() click to toggle source

this is an abstract base class.

# File lib/saml_idp/logout_builder.rb, line 19
def build
  raise "#{self.class} must implement build method"
end
encode() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 35
def encode
  Base64.strict_encode64(raw)
end
now_iso() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 45
def now_iso
  Time.now.utc.iso8601
end
response_id_string() click to toggle source
# File lib/saml_idp/logout_builder.rb, line 40
def response_id_string
  "_#{response_id}"
end