digidentity/libsaml

View on GitHub
lib/saml/elements/encrypted_assertion.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Saml
  module Elements
    class EncryptedAssertion
      include Saml::Base

      tag "EncryptedAssertion"

      register_namespace "saml", Saml::SAML_NAMESPACE
      namespace "saml"

      element :encrypted_data, Xmlenc::Builder::EncryptedData
      has_many :encrypted_keys, Xmlenc::Builder::EncryptedKey, xpath: './'

      validates :encrypted_data, presence: true
    end
  end
end