PHP Класс SimpleSAML_Metadata_Signer, simplesamlphp

Автор: Olav Morken, UNINETT AS.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.