You are here

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

Set the authentication context declaration reference.

Parameters

string $authnContextDeclRef:

Throws

Exception

1 call to SAML2_Assertion::setAuthnContextDeclRef()
SAML2_Assertion::parseAuthnContext in src/SAML2_Assertion.php
Parse AuthnContext in AuthnStatement.

File

src/SAML2_Assertion.php, line 548

Class

SAML2_Assertion

Namespace

Drupal\miniorange_saml

Code

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