PHP 클래스 SAML2\Certificate\KeyLoader

파일 보기 프로젝트 열기: simplesamlphp/saml2 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
extractPublicKeys ( SAML2\Configuration\CertificateProvider $config, null $usage = null, boolean $required = false, string $prefix = '' ) : SAML2\Certificate\KeyCollection Extracts the public keys given by the configuration. Mainly exists for BC purposes.
getKeys ( ) : SAML2\Certificate\KeyCollection
hasKeys ( ) : boolean
loadCertificateData ( string $certificateData ) Attempts to load a key based on the given certificateData
loadCertificateFile ( string $certificateFile ) Loads the certificate in the file given
loadKeys ( array $configuredKeys, $usage ) Loads the keys given, optionally excluding keys when a usage is given and they are not configured to be used with the usage given
loadKeysFromConfiguration ( SAML2\Configuration\CertificateProvider $config, null | string $usage = null, boolean $required = false ) : SAML2\Certificate\KeyCollection

메소드 상세

__construct() 공개 메소드

public __construct ( )

extractPublicKeys() 공개 정적인 메소드

Prioritisation order is keys > certData > certificate
public static extractPublicKeys ( SAML2\Configuration\CertificateProvider $config, null $usage = null, boolean $required = false, string $prefix = '' ) : SAML2\Certificate\KeyCollection
$config SAML2\Configuration\CertificateProvider
$usage null
$required boolean
$prefix string
리턴 SAML2\Certificate\KeyCollection

getKeys() 공개 메소드

public getKeys ( ) : SAML2\Certificate\KeyCollection
리턴 SAML2\Certificate\KeyCollection

hasKeys() 공개 메소드

public hasKeys ( ) : boolean
리턴 boolean

loadCertificateData() 공개 메소드

Attempts to load a key based on the given certificateData
public loadCertificateData ( string $certificateData )
$certificateData string

loadCertificateFile() 공개 메소드

Loads the certificate in the file given
public loadCertificateFile ( string $certificateFile )
$certificateFile string the full path to the cert file.

loadKeys() 공개 메소드

Loads the keys given, optionally excluding keys when a usage is given and they are not configured to be used with the usage given
public loadKeys ( array $configuredKeys, $usage )
$configuredKeys array
$usage

loadKeysFromConfiguration() 공개 메소드

public loadKeysFromConfiguration ( SAML2\Configuration\CertificateProvider $config, null | string $usage = null, boolean $required = false ) : SAML2\Certificate\KeyCollection
$config SAML2\Configuration\CertificateProvider
$usage null | string
$required boolean
리턴 SAML2\Certificate\KeyCollection