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)
@return [String|nil] Gets the ID attribute from the SAML Message if exists.
-
#valid_saml?(document, soft = true)
Validates the SAML Message against the specified schema.
-
#version(document)
@return [String|nil] Gets the Version attribute from the SAML Message if exists.
Instance Method Detail
def valid_saml?(document, soft = true)
#
Validates the SAML Message against the specified schema. @param document [REXML::Document] The message that will be validated @param soft [Boolean] soft Enable or Disable the soft mode (In order to raise exceptions when the message is invalid or not) @return [Boolean] True if the XML is valid, otherwise False, if soft=True @raise [ValidationError] if soft == false and validation fails
def version(document)
#
@return [String|nil] Gets the Version attribute from the SAML Message if exists.