Class: SamlIdp::SamlResponse
- Inherits:
-
Object
- Object
- SamlIdp::SamlResponse
- Defined in:
- lib/saml_idp/saml_response.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#assertion_with_signature ⇒ Object
Returns the value of attribute assertion_with_signature.
-
#audience_uri ⇒ Object
Returns the value of attribute audience_uri.
-
#issuer_uri ⇒ Object
Returns the value of attribute issuer_uri.
-
#principal ⇒ Object
Returns the value of attribute principal.
-
#reference_id ⇒ Object
Returns the value of attribute reference_id.
-
#response_id ⇒ Object
Returns the value of attribute response_id.
-
#saml_acs_url ⇒ Object
Returns the value of attribute saml_acs_url.
-
#saml_request_id ⇒ Object
Returns the value of attribute saml_request_id.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(reference_id, response_id, issuer_uri, principal, audience_uri, saml_request_id, saml_acs_url, algorithm) ⇒ SamlResponse
constructor
A new instance of SamlResponse.
- #signed_assertion ⇒ Object
Constructor Details
#initialize(reference_id, response_id, issuer_uri, principal, audience_uri, saml_request_id, saml_acs_url, algorithm) ⇒ SamlResponse
Returns a new instance of SamlResponse.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/saml_idp/saml_response.rb', line 17 def initialize(reference_id, response_id, issuer_uri, principal, audience_uri, saml_request_id, saml_acs_url, algorithm ) self.reference_id = reference_id self.response_id = response_id self.issuer_uri = issuer_uri self.principal = principal self.audience_uri = audience_uri self.saml_request_id = saml_request_id self.saml_acs_url = saml_acs_url self.algorithm = algorithm self.secret_key = secret_key self.x509_certificate = x509_certificate end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
13 14 15 |
# File 'lib/saml_idp/saml_response.rb', line 13 def algorithm @algorithm end |
#assertion_with_signature ⇒ Object
Returns the value of attribute assertion_with_signature.
5 6 7 |
# File 'lib/saml_idp/saml_response.rb', line 5 def assertion_with_signature @assertion_with_signature end |
#audience_uri ⇒ Object
Returns the value of attribute audience_uri.
10 11 12 |
# File 'lib/saml_idp/saml_response.rb', line 10 def audience_uri @audience_uri end |
#issuer_uri ⇒ Object
Returns the value of attribute issuer_uri.
8 9 10 |
# File 'lib/saml_idp/saml_response.rb', line 8 def issuer_uri @issuer_uri end |
#principal ⇒ Object
Returns the value of attribute principal.
9 10 11 |
# File 'lib/saml_idp/saml_response.rb', line 9 def principal @principal end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
6 7 8 |
# File 'lib/saml_idp/saml_response.rb', line 6 def reference_id @reference_id end |
#response_id ⇒ Object
Returns the value of attribute response_id.
7 8 9 |
# File 'lib/saml_idp/saml_response.rb', line 7 def response_id @response_id end |
#saml_acs_url ⇒ Object
Returns the value of attribute saml_acs_url.
12 13 14 |
# File 'lib/saml_idp/saml_response.rb', line 12 def saml_acs_url @saml_acs_url end |
#saml_request_id ⇒ Object
Returns the value of attribute saml_request_id.
11 12 13 |
# File 'lib/saml_idp/saml_response.rb', line 11 def saml_request_id @saml_request_id end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
14 15 16 |
# File 'lib/saml_idp/saml_response.rb', line 14 def secret_key @secret_key end |
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
15 16 17 |
# File 'lib/saml_idp/saml_response.rb', line 15 def x509_certificate @x509_certificate end |
Instance Method Details
#build ⇒ Object
38 39 40 |
# File 'lib/saml_idp/saml_response.rb', line 38 def build @built ||= response_builder.encoded end |
#signed_assertion ⇒ Object
42 43 44 |
# File 'lib/saml_idp/saml_response.rb', line 42 def signed_assertion assertion_builder.signed end |