public function SAML2_Assertion::setAuthnContextDecl in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
Set the authentication context declaration.
Parameters
\SAML2_XML_Chunk $authnContextDecl:
Throws
Exception
1 call to SAML2_Assertion::setAuthnContextDecl()
- SAML2_Assertion::parseAuthnContext in src/
SAML2_Assertion.php - Parse AuthnContext in AuthnStatement.
File
- src/
SAML2_Assertion.php, line 531
Class
Namespace
Drupal\miniorange_samlCode
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;
}