You are here

public function SAML2_Assertion::setAuthnContextDecl in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Set the authentication context declaration.

Parameters

\SAML2_XML_Chunk $authnContextDecl:

Throws

Exception

1 call to SAML2_Assertion::setAuthnContextDecl()
SAML2_Assertion::parseAuthnContext in includes/Assertion.php
Parse AuthnContext in AuthnStatement.

File

includes/Assertion.php, line 854

Class

SAML2_Assertion

Code

public function setAuthnContextDecl(SAML2_XML_Chunk $authnContextDecl) {
  if (!empty($this->authnContextDeclRef)) {
    throw new Exception('AuthnContextDeclRef is already registered! May only have either a Decl or a DeclRef, not both!');
  }
  $this->authnContextDecl = $authnContextDecl;
}