PHP Class SimpleSAML_Metadata_Signer, simplesamlphp

Author: Olav Morken, UNINETT AS.
Afficher le fichier Open project: simplesamlphp/simplesamlphp Class Usage Examples

Méthodes publiques

Méthode Description
sign ( string $metadataString, array $entityMetadata, string $type ) : string Signs the given metadata if metadata signing is enabled.

Private Methods

Méthode Description
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.

Method Details

sign() public static méthode

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'.
Résultat string The $metadataString with the signature embedded.