class
Saml::SamlMessage
- Saml::SamlMessage
- Reference
- Object
Overview
SAML2 Message
Direct Known Subclasses
- Saml::Authrequest
- Saml::Logoutrequest
- Saml::Logoutresponse
- Saml::Response
- Saml::SloLogoutrequest
- Saml::SloLogoutresponse
Defined in:
saml/saml_message.crConstant Summary
-
ASSERTION =
"urn:oasis:names:tc:SAML:2.0:assertion" -
BASE64_FORMAT =
/\A([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?\Z/ -
PROTOCOL =
"urn:oasis:names:tc:SAML:2.0:protocol"
Instance Method Summary
-
#id(document) : String | Nil
@return [String|nil] Gets the ID attribute from the SAML Message if exists.
-
#valid_saml?(document, soft = true, check_malformed_doc = true) : Bool
Validates the message against the SAML 2.0 protocol schema.
-
#version(document) : String | Nil
@return [String|nil] Gets the Version attribute from the SAML Message if exists.
Instance Method Detail
def id(document) : String | Nil
#
@return [String|nil] Gets the ID attribute from the SAML Message if exists.
Validates the message against the SAML 2.0 protocol schema. @raise [ValidationError] if soft == false and validation fails
def version(document) : String | Nil
#
@return [String|nil] Gets the Version attribute from the SAML Message if exists.