Class: SAML2::Subject::Confirmation
- Inherits:
-
Object
- Object
- SAML2::Subject::Confirmation
- Defined in:
- lib/saml2/subject.rb
Defined Under Namespace
Modules: Methods
Instance Attribute Summary collapse
-
#in_response_to ⇒ Object
Returns the value of attribute in_response_to.
-
#method ⇒ Object
Returns the value of attribute method.
-
#not_before ⇒ Object
Returns the value of attribute not_before.
-
#not_on_or_after ⇒ Object
Returns the value of attribute not_on_or_after.
-
#recipient ⇒ Object
Returns the value of attribute recipient.
Instance Method Summary collapse
Instance Attribute Details
#in_response_to ⇒ Object
Returns the value of attribute in_response_to.
30 31 32 |
# File 'lib/saml2/subject.rb', line 30 def in_response_to @in_response_to end |
#method ⇒ Object
Returns the value of attribute method.
30 31 32 |
# File 'lib/saml2/subject.rb', line 30 def method @method end |
#not_before ⇒ Object
Returns the value of attribute not_before.
30 31 32 |
# File 'lib/saml2/subject.rb', line 30 def not_before @not_before end |
#not_on_or_after ⇒ Object
Returns the value of attribute not_on_or_after.
30 31 32 |
# File 'lib/saml2/subject.rb', line 30 def not_on_or_after @not_on_or_after end |
#recipient ⇒ Object
Returns the value of attribute recipient.
30 31 32 |
# File 'lib/saml2/subject.rb', line 30 def recipient @recipient end |
Instance Method Details
#build(builder) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/saml2/subject.rb', line 32 def build(builder) builder['saml'].SubjectConfirmation('Method' => method) do |builder| if in_response_to || recipient || not_before || not_on_or_after builder['saml'].SubjectConfirmationData do |builder| builder.parent['NotBefore'] = not_before.iso8601 if not_before builder.parent['NotOnOrAfter'] = not_on_or_after.iso8601 if not_on_or_after builder.parent['Recipient'] = recipient if recipient builder.parent['InResponseTo'] = in_response_to if in_response_to end end end end |