PHP 클래스 OneLogin_Saml2_Metadata

파일 보기 프로젝트 열기: onelogin/php-saml 1 사용 예제들

공개 메소드들

메소드 설명
addX509KeyDescriptors ( string $metadata, string $cert, boolean $wantsEncrypted = true ) : string Adds the x509 descriptors (sign/encriptation) to the metadata The same cert will be used for sign/encrypt
builder ( array $sp, boolean | string $authnsign = false, boolean | string $wsign = false, DateTime | null $validUntil = null, integer | null $cacheDuration = null, array $contacts = [], array $organization = [], array $attributes = [] ) : string Generates the metadata of the SP based on the settings
signMetadata ( string $metadata, string $key, string $cert, $signAlgorithm = XMLSecurityKey::RSA_SHA1 ) : string Signs the metadata with the key/cert provided

메소드 상세

addX509KeyDescriptors() 공개 정적인 메소드

Adds the x509 descriptors (sign/encriptation) to the metadata The same cert will be used for sign/encrypt
public static addX509KeyDescriptors ( string $metadata, string $cert, boolean $wantsEncrypted = true ) : string
$metadata string SAML Metadata XML
$cert string x509 cert
$wantsEncrypted boolean Whether to include the KeyDescriptor for encryption
리턴 string Metadata with KeyDescriptors

builder() 공개 정적인 메소드

Generates the metadata of the SP based on the settings
public static builder ( array $sp, boolean | string $authnsign = false, boolean | string $wsign = false, DateTime | null $validUntil = null, integer | null $cacheDuration = null, array $contacts = [], array $organization = [], array $attributes = [] ) : string
$sp array The SP data
$authnsign boolean | string authnRequestsSigned attribute
$wsign boolean | string wantAssertionsSigned attribute
$validUntil DateTime | null Metadata's valid time
$cacheDuration integer | null Duration of the cache in seconds
$contacts array Contacts info
$organization array Organization ingo
$attributes array
리턴 string SAML Metadata XML

signMetadata() 공개 정적인 메소드

Signs the metadata with the key/cert provided
public static signMetadata ( string $metadata, string $key, string $cert, $signAlgorithm = XMLSecurityKey::RSA_SHA1 ) : string
$metadata string SAML Metadata XML
$key string x509 key
$cert string x509 cert
리턴 string Signed Metadata