PHP 클래스 SimpleSAML_Metadata_Signer, simplesamlphp

저자: Olav Morken, UNINETT AS.
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
sign ( string $metadataString, array $entityMetadata, string $type ) : string Signs the given metadata if metadata signing is enabled.

비공개 메소드들

메소드 설명
findKeyCert ( SimpleSAML_Configuration $config, array $entityMetadata, string $type ) : array This functions finds what key & certificate files should be used to sign the metadata for the given entity.
getMetadataSigningAlgorithm ( SimpleSAML_Configuration $config, array $entityMetadata, string $type ) : array Determine the signature and digest algorithms to use when signing metadata.
isMetadataSigningEnabled ( SimpleSAML_Configuration $config, array $entityMetadata, string $type ) : boolean Determine whether metadata signing is enabled for the given metadata.

메소드 상세

sign() 공개 정적인 메소드

Signs the given metadata if metadata signing is enabled.
public static sign ( string $metadataString, array $entityMetadata, string $type ) : string
$metadataString string A string with the metadata.
$entityMetadata array The metadata of the entity.
$type string A string which describes the type entity this is, e.g. 'SAML 2 IdP' or 'Shib 1.3 SP'.
리턴 string The $metadataString with the signature embedded.