PHP Класс SimpleSAML_XML_Shib13_AuthnResponse, simplesamlphp

Автор: Andreas Åkre Solberg, UNINETT AS. ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
generate ( SimpleSAML_Configuration $idp, SimpleSAML_Configuration $sp, string $shire, array | null $attributes ) : string Build a authentication response.
getAttributes ( )
getIssuer ( )
getNameID ( )
getRelayState ( )
getSessionIndex ( ) : string | null Retrieve the session index of this response.
setMessageValidated ( boolean $messageValidated ) Set whether this message was validated externally.
setRelayState ( $relayState )
setXML ( $xml )
validate ( )

Защищенные методы

Метод Описание
checkDateConditions ( string | null $start = null, string | null $end = null ) : boolean Check if we are currently between the given date & time conditions.

Приватные методы

Метод Описание
doXPathQuery ( $query, $node = NULL ) This function runs an xPath query on this authentication response.
enc_attribute ( string $name, array $values, boolean $base64, array $scopedAttributes ) : string Format a shib13 attribute.
isNodeValidated ( $node ) * Checks if the given node is validated by the signature on this response.

Описание методов

checkDateConditions() защищенный статический метод

Note that this function allows a 10-minute leap from the initial time as marked by $start.
Автор: Andreas Solberg, UNINETT AS ([email protected])
Автор: Olav Morken, UNINETT AS ([email protected])
protected static checkDateConditions ( string | null $start = null, string | null $end = null ) : boolean
$start string | null A SAML2 timestamp marking the start of the period to check. Defaults to null, in which case there's no limitations in the past.
$end string | null A SAML2 timestamp marking the end of the period to check. Defaults to null, in which case there's no limitations in the future.
Результат boolean True if the current time belongs to the period specified by $start and $end. False otherwise.

generate() публичный метод

Build a authentication response.
public generate ( SimpleSAML_Configuration $idp, SimpleSAML_Configuration $sp, string $shire, array | null $attributes ) : string
$idp SimpleSAML_Configuration Metadata for the IdP the response is sent from.
$sp SimpleSAML_Configuration Metadata for the SP the response is sent to.
$shire string The endpoint on the SP the response is sent to.
$attributes array | null The attributes which should be included in the response.
Результат string The response.

getAttributes() публичный метод

public getAttributes ( )

getIssuer() публичный метод

public getIssuer ( )

getNameID() публичный метод

public getNameID ( )

getRelayState() публичный метод

public getRelayState ( )

getSessionIndex() публичный метод

Retrieve the session index of this response.
public getSessionIndex ( ) : string | null
Результат string | null The session index of this response.

setMessageValidated() публичный метод

Set whether this message was validated externally.
public setMessageValidated ( boolean $messageValidated )
$messageValidated boolean TRUE if the message is already validated, FALSE if not.

setRelayState() публичный метод

public setRelayState ( $relayState )

setXML() публичный метод

public setXML ( $xml )

validate() публичный метод

public validate ( )