Ejemplo n.º 1
0
 /**
  * @param \DOMNode               $node
  * @param DeserializationContext $context
  */
 public function deserialize(\DOMNode $node, DeserializationContext $context)
 {
     $this->checkXmlNodeName($node, 'LogoutRequest', SamlConstants::NS_PROTOCOL);
     parent::deserialize($node, $context);
     $this->attributesFromXml($node, array('Reason', 'NotOnOrAfter'));
     $this->singleElementsFromXml($node, $context, array('NameID' => array('saml', 'LightSaml\\Model\\Assertion\\NameID'), 'SessionIndex' => array('samlp', null)));
 }
Ejemplo n.º 2
0
 /**
  * @param \DOMNode               $node
  * @param DeserializationContext $context
  */
 public function deserialize(\DOMNode $node, DeserializationContext $context)
 {
     $this->checkXmlNodeName($node, 'AuthnRequest', SamlConstants::NS_PROTOCOL);
     parent::deserialize($node, $context);
     $this->attributesFromXml($node, array('ForceAuthn', 'IsPassive', 'ProtocolBinding', 'AssertionConsumerServiceIndex', 'AssertionConsumerServiceURL', 'AttributeConsumingServiceIndex', 'ProviderName'));
     $this->singleElementsFromXml($node, $context, array('Subject' => array('saml', 'LightSaml\\Model\\Assertion\\Subject'), 'NameIDPolicy' => array('samlp', 'LightSaml\\Model\\Protocol\\NameIDPolicy'), 'Conditions' => array('saml', 'LightSaml\\Model\\Assertion\\Conditions')));
 }