PHP 클래스 SimpleSAML_XML_Shib13_AuthnResponse, simplesamlphp

저자: Andreas Åkre Solberg, UNINETT AS. ([email protected])
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )