Свойство | Type | Description | |
---|---|---|---|
$document | DOMDocument | This variable is used while generating XML from this message. It holds the \DOMDocument of the XML we are generating. | |
$extensions | array | Request extensions. | |
$messageContainedSignatureUponConstruction | boolean |
Méthode | Description | |
---|---|---|
addValidator ( callback $function, mixed $data ) | Add a method for validating this message. | |
fromXML ( DOMElement $xml ) : |
Convert an XML element into a message. | |
getCertificates ( ) : array | Retrieve the certificates that are included in the message. | |
getConsent ( ) : string | Set the given consent for this message. | |
getDestination ( ) : string | null | Retrieve the destination of this message. | |
getExtensions ( ) : SAML2\XML\samlp\Extensions | Retrieve the Extensions. | |
getId ( ) : string | Retrieve the identifier of this message. | |
getIssueInstant ( ) : integer | Retrieve the issue timestamp of this message. | |
getIssuer ( ) : string | |
Retrieve the issuer if this message. | |
getRelayState ( ) : string | null | Retrieve the RelayState associated with this message. | |
getSignatureKey ( ) : |
Retrieve the private key we should use to sign the message. | |
getSignatureMethod ( ) : null | string | ||
isMessageConstructedWithSignature ( ) : boolean | Query whether or not the message contained a signature at the root level when the object was constructed. | |
setCertificates ( array $certificates ) | Set the certificates that should be included in the message. | |
setConsent ( string $consent ) | Set the given consent for this message. | |
setDestination ( string | null $destination ) | Set the destination of this message. | |
setExtensions ( array | null $extensions ) | Set the Extensions. | |
setId ( string $id ) | Set the identifier of this message. | |
setIssueInstant ( integer $issueInstant ) | Set the issue timestamp of this message. | |
setIssuer ( string | |
Set the issuer of this message. | |
setRelayState ( string | null $relayState ) | Set the RelayState associated with this message. | |
setSignatureKey ( XMLsecurityKey $signatureKey = null ) | Set the private key we should use to sign the message. | |
toSignedXML ( ) : DOMElement | Convert this message to a signed XML document. | |
toUnsignedXML ( ) : DOMElement | Convert this message to an unsigned XML document. | |
validate ( |
Validate this message against a public key. |
Méthode | Description | |
---|---|---|
__construct ( string $tagName, DOMElement $xml = null ) | Initialize a message. |
Méthode | Description | |
---|---|---|
validateSignature ( DOMElement $xml ) | Validate the signature element of a SAML message, and configure this object appropriately to perform the signature verification afterwards. |
protected __construct ( string $tagName, DOMElement $xml = null ) | ||
$tagName | string | The tag name of the root element |
$xml | DOMElement | The input message |
public addValidator ( callback $function, mixed $data ) | ||
$function | callback | The function which should be called |
$data | mixed | The data that should be included as the first parameter to the function |
public static fromXML ( DOMElement $xml ) : |
||
$xml | DOMElement | The root XML element |
Résultat | The message |
public getCertificates ( ) : array | ||
Résultat | array | An array of certificates |
public getConsent ( ) : string | ||
Résultat | string | Consent |
public getDestination ( ) : string | null | ||
Résultat | string | null | The destination of this message, or NULL if no destination is given |
public getExtensions ( ) : SAML2\XML\samlp\Extensions | ||
Résultat | SAML2\XML\samlp\Extensions |
public getIssueInstant ( ) : integer | ||
Résultat | integer | The issue timestamp of this message, as an UNIX timestamp |
public getRelayState ( ) : string | null | ||
Résultat | string | null | The RelayState, or NULL if no RelayState is given |
public getSignatureKey ( ) : |
||
Résultat | The key, or NULL if no key is specified |
public getSignatureMethod ( ) : null | string | ||
Résultat | null | string |
public isMessageConstructedWithSignature ( ) : boolean | ||
Résultat | boolean |
public setCertificates ( array $certificates ) | ||
$certificates | array | An array of certificates |
public setConsent ( string $consent ) | ||
$consent | string |
public setDestination ( string | null $destination ) | ||
$destination | string | null | The new destination of this message |
public setExtensions ( array | null $extensions ) | ||
$extensions | array | null | The Extensions |
public setIssueInstant ( integer $issueInstant ) | ||
$issueInstant | integer | The new issue timestamp of this message, as an UNIX timestamp |
public setRelayState ( string | null $relayState ) | ||
$relayState | string | null | The new RelayState |
public setSignatureKey ( XMLsecurityKey $signatureKey = null ) | ||
$signatureKey | XMLsecurityKey |
public toSignedXML ( ) : DOMElement | ||
Résultat | DOMElement | The root element of the DOM tree |
public toUnsignedXML ( ) : DOMElement | ||
Résultat | DOMElement | The root element of the DOM tree |
protected DOMDocument $document | ||
Résultat | DOMDocument |
protected bool $messageContainedSignatureUponConstruction | ||
Résultat | boolean |