Class: SamlIdp::ResponseBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/saml_idp/response_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_id, issuer_uri, saml_acs_url, saml_request_id, assertion_and_signature) ⇒ ResponseBuilder

Returns a new instance of ResponseBuilder.



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

def initialize(response_id, issuer_uri, saml_acs_url, saml_request_id, assertion_and_signature)
  self.response_id = response_id
  self.issuer_uri = issuer_uri
  self.saml_acs_url = saml_acs_url
  self.saml_request_id = saml_request_id
  self.assertion_and_signature = assertion_and_signature
end

Instance Attribute Details

#assertion_and_signatureObject

Returns the value of attribute assertion_and_signature.



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

def assertion_and_signature
  @assertion_and_signature
end

#issuer_uriObject

Returns the value of attribute issuer_uri.



5
6
7
# File 'lib/saml_idp/response_builder.rb', line 5

def issuer_uri
  @issuer_uri
end

#response_idObject

Returns the value of attribute response_id.



4
5
6
# File 'lib/saml_idp/response_builder.rb', line 4

def response_id
  @response_id
end

#saml_acs_urlObject

Returns the value of attribute saml_acs_url.



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

def saml_acs_url
  @saml_acs_url
end

#saml_request_idObject

Returns the value of attribute saml_request_id.



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

def saml_request_id
  @saml_request_id
end

Instance Method Details

#encodedObject



18
19
20
# File 'lib/saml_idp/response_builder.rb', line 18

def encoded
  @encoded ||= encode
end

#rawObject



22
23
24
# File 'lib/saml_idp/response_builder.rb', line 22

def raw
  build
end