Property | Type | Description | |
---|---|---|---|
$wasSignedAtConstruction | boolean |
Method | Description | |
---|---|---|
__construct ( DOMElement $xml = null ) | Constructor for SAML 2 assertions. | |
decryptAttributes ( |
Decrypt the assertion attributes. | |
decryptNameId ( |
Decrypt the NameId of the subject in the assertion. | |
encryptNameId ( |
Encrypt the NameID in the Assertion. | |
getAttributeNameFormat ( ) : string | Retrieve the NameFormat used on all attributes. | |
getAttributes ( ) : array | Retrieve all attributes. | |
getAuthenticatingAuthority ( ) : array | Retrieve the AuthenticatingAuthority. | |
getAuthnContext ( ) : string | null | Retrieve the authentication method used to authenticate the user. | |
getAuthnContextClassRef ( ) : string | null | Retrieve the authentication method used to authenticate the user. | |
getAuthnContextDecl ( ) : |
Get the authentication context declaration. | |
getAuthnContextDeclRef ( ) : string | Get the authentication context declaration reference. | |
getAuthnInstant ( ) : integer | null | Retrieve the AuthnInstant of the assertion. | |
getCertificates ( ) : array | Retrieve the certificates that are included in the assertion. | |
getEncryptionKey ( ) : |
Return the key we should use to encrypt the assertion. | |
getId ( ) : string | Retrieve the identifier of this assertion. | |
getIssueInstant ( ) : integer | Retrieve the issue timestamp of this assertion. | |
getIssuer ( ) : string | |
Retrieve the issuer if this assertion. | |
getNameId ( ) : array | null | Retrieve the NameId of the subject in the assertion. | |
getNotBefore ( ) : integer | null | Retrieve the earliest timestamp this assertion is valid. | |
getNotOnOrAfter ( ) : integer | null | Retrieve the expiration timestamp of this assertion. | |
getSessionIndex ( ) : string | null | Retrieve the session index of the user at the IdP. | |
getSessionNotOnOrAfter ( ) : integer | null | Retrieve the session expiration timestamp. | |
getSignatureKey ( ) : |
Retrieve the private key we should use to sign the assertion. | |
getSignatureMethod ( ) : null | string | ||
getSubjectConfirmation ( ) : array | Retrieve the SubjectConfirmation elements we have in our Subject element. | |
getValidAudiences ( ) : array | null | Retrieve the audiences that are allowed to receive this assertion. | |
getWasSignedAtConstruction ( ) : boolean | ||
hasEncryptedAttributes ( ) : boolean | Did this Assertion contain encrypted Attributes? | |
isNameIdEncrypted ( ) : true | Check whether the NameId is encrypted. | |
setAttributeNameFormat ( string $nameFormat ) | Set the NameFormat used on all attributes. | |
setAttributes ( array $attributes ) | Replace all attributes. | |
setAuthenticatingAuthority ( $authenticatingAuthority ) | Set the AuthenticatingAuthority | |
setAuthnContext ( string | null $authnContext ) | Set the authentication method used to authenticate the user. | |
setAuthnContextClassRef ( string | null $authnContextClassRef ) | Set the authentication method used to authenticate the user. | |
setAuthnContextDecl ( |
Set the authentication context declaration. | |
setAuthnContextDeclRef ( string $authnContextDeclRef ) | Set the authentication context declaration reference. | |
setAuthnInstant ( integer | null $authnInstant ) | Set the AuthnInstant of the assertion. | |
setCertificates ( array $certificates ) | Set the certificates that should be included in the assertion. | |
setEncryptedAttributes ( boolean $ea ) | Set $EncryptedAttributes if attributes will send encrypted | |
setEncryptionKey ( |
Set the private key we should use to encrypt the attributes. | |
setId ( string $id ) | Set the identifier of this assertion. | |
setIssueInstant ( integer $issueInstant ) | Set the issue timestamp of this assertion. | |
setIssuer ( string | |
Set the issuer of this message. | |
setNameId ( array | null $nameId ) | Set the NameId of the subject in the assertion. | |
setNotBefore ( integer | null $notBefore ) | Set the earliest timestamp this assertion can be used. | |
setNotOnOrAfter ( integer | null $notOnOrAfter ) | Set the expiration timestamp of this assertion. | |
setSessionIndex ( string | null $sessionIndex ) | Set the session index of the user at the IdP. | |
setSessionNotOnOrAfter ( integer | null $sessionNotOnOrAfter ) | Set the session expiration timestamp. | |
setSignatureKey ( XMLsecurityKey $signatureKey = null ) | Set the private key we should use to sign the assertion. | |
setSubjectConfirmation ( array $SubjectConfirmation ) | Set the SubjectConfirmation elements that should be included in the assertion. | |
setValidAudiences ( array $validAudiences = null ) | Set the audiences that are allowed to receive this assertion. | |
toXML ( DOMNode $parentElement = null ) : DOMElement | Convert this assertion to an XML element. | |
validate ( |
Validate this assertion against a public key. |
Method | Description | |
---|---|---|
addAttributeStatement ( DOMElement $root ) | Add an AttributeStatement-node to the assertion. | |
addAuthnStatement ( DOMElement $root ) | Add a AuthnStatement-node to the assertion. | |
addConditions ( DOMElement $root ) | Add a Conditions-node to the assertion. | |
addEncryptedAttributeStatement ( DOMElement $root ) | Add an EncryptedAttribute Statement-node to the assertion. | |
addSubject ( DOMElement $root ) | Add a Subject-node to the assertion. | |
parseAttributeValue ( DOMNode $attribute, string $attributeName ) | ||
parseAttributes ( DOMElement $xml ) | Parse attribute statements in assertion. | |
parseAuthnContext ( DOMElement $authnStatementEl ) | Parse AuthnContext in AuthnStatement. | |
parseAuthnStatement ( DOMElement $xml ) | Parse AuthnStatement in assertion. | |
parseConditions ( DOMElement $xml ) | Parse conditions in assertion. | |
parseEncryptedAttributes ( DOMElement $xml ) | Parse encrypted attribute statements in assertion. | |
parseSignature ( DOMElement $xml ) | Parse signature on assertion. | |
parseSubject ( DOMElement $xml ) | Parse subject in assertion. |
public __construct ( DOMElement $xml = null ) | ||
$xml | DOMElement | The input assertion. |
public decryptAttributes ( |
||
$key | ||
$blacklist | array |
public decryptNameId ( |
||
$key | The decryption key. | |
$blacklist | array | Blacklisted decryption algorithms. |
public encryptNameId ( |
||
$key | The encryption key. |
public getAttributeNameFormat ( ) : string | ||
return | string | The NameFormat used on all attributes. |
public getAttributes ( ) : array | ||
return | array | All attributes, as an associative array. |
public getAuthenticatingAuthority ( ) : array | ||
return | array |
public getAuthnContext ( ) : string | null | ||
return | string | null | The authentication method. |
public getAuthnContextClassRef ( ) : string | null | ||
return | string | null | The authentication method. |
public getAuthnContextDecl ( ) : |
||
return |
public getAuthnContextDeclRef ( ) : string | ||
return | string |
public getAuthnInstant ( ) : integer | null | ||
return | integer | null | The timestamp the user was authenticated, or NULL if the user isn't authenticated. |
public getCertificates ( ) : array | ||
return | array | An array of certificates. |
public getEncryptionKey ( ) : |
||
return | The key, or NULL if no key is specified.. |
public getIssueInstant ( ) : integer | ||
return | integer | The issue timestamp of this assertion, as an UNIX timestamp. |
public getNotBefore ( ) : integer | null | ||
return | integer | null | The earliest timestamp this assertion is valid. |
public getNotOnOrAfter ( ) : integer | null | ||
return | integer | null | The latest timestamp this assertion is valid. |
public getSessionIndex ( ) : string | null | ||
return | string | null | The session index of the user at the IdP. |
public getSessionNotOnOrAfter ( ) : integer | null | ||
return | integer | null | The latest timestamp this session is valid. |
public getSignatureKey ( ) : |
||
return | The key, or NULL if no key is specified. |
public getSignatureMethod ( ) : null | string | ||
return | null | string |
public getSubjectConfirmation ( ) : array | ||
return | array | Array of \SAML2\XML\saml\SubjectConfirmation elements. |
public getValidAudiences ( ) : array | null | ||
return | array | null | The allowed audiences. |
public getWasSignedAtConstruction ( ) : boolean | ||
return | boolean |
public hasEncryptedAttributes ( ) : boolean | ||
return | boolean |
public isNameIdEncrypted ( ) : true | ||
return | true | if the NameId is encrypted, false if not. |
public setAttributeNameFormat ( string $nameFormat ) | ||
$nameFormat | string | The NameFormat used on all attributes. |
public setAttributes ( array $attributes ) | ||
$attributes | array | All new attributes, as an associative array. |
public setAuthenticatingAuthority ( $authenticatingAuthority ) |
public setAuthnContext ( string | null $authnContext ) | ||
$authnContext | string | null | The authentication method. |
public setAuthnContextClassRef ( string | null $authnContextClassRef ) | ||
$authnContextClassRef | string | null | The authentication method. |
public setAuthnContextDecl ( |
||
$authnContextDecl |
public setAuthnContextDeclRef ( string $authnContextDeclRef ) | ||
$authnContextDeclRef | string |
public setAuthnInstant ( integer | null $authnInstant ) | ||
$authnInstant | integer | null | Timestamp the user was authenticated, or NULL if we don't want an AuthnStatement. |
public setCertificates ( array $certificates ) | ||
$certificates | array | An array of certificates. |
public setEncryptedAttributes ( boolean $ea ) | ||
$ea | boolean | true to encrypt attributes in the assertion. |
public setEncryptionKey ( |
||
$Key |
public setIssueInstant ( integer $issueInstant ) | ||
$issueInstant | integer | The new issue timestamp of this assertion, as an UNIX timestamp. |
public setNotBefore ( integer | null $notBefore ) | ||
$notBefore | integer | null | The earliest timestamp this assertion is valid. |
public setNotOnOrAfter ( integer | null $notOnOrAfter ) | ||
$notOnOrAfter | integer | null | The latest timestamp this assertion is valid. |
public setSessionIndex ( string | null $sessionIndex ) | ||
$sessionIndex | string | null | The session index of the user at the IdP. |
public setSessionNotOnOrAfter ( integer | null $sessionNotOnOrAfter ) | ||
$sessionNotOnOrAfter | integer | null | The latest timestamp this session is valid. |
public setSignatureKey ( XMLsecurityKey $signatureKey = null ) | ||
$signatureKey | XMLsecurityKey |
public setSubjectConfirmation ( array $SubjectConfirmation ) | ||
$SubjectConfirmation | array | Array of \SAML2\XML\saml\SubjectConfirmation elements. |
public setValidAudiences ( array $validAudiences = null ) | ||
$validAudiences | array | The allowed audiences. |
public toXML ( DOMNode $parentElement = null ) : DOMElement | ||
$parentElement | DOMNode | The DOM node the assertion should be created in. |
return | DOMElement | This assertion. |