Method | Description | |
---|---|---|
__construct ( string $entityId, double | null $maxCache = null, double | null $maxDuration = null ) | Initialize the SAML builder. | |
addAttributeAuthority ( array $metadata ) | Add metadata of a SAML attribute authority. | |
addContact ( string $type, array $details ) | Add contact information. | |
addMetadata ( string $set, array $metadata ) | Add a specific type of metadata to an entity. | |
addMetadataIdP11 ( array $metadata ) | Add metadata of a SAML 1.1 identity provider. | |
addMetadataIdP20 ( array $metadata ) | Add metadata of a SAML 2.0 identity provider. | |
addMetadataSP11 ( array $metadata ) | Add metadata of a SAML 1.1 service provider. | |
addMetadataSP20 ( array $metadata, array $protocols = [SAML2\Constants::NS_SAMLP] ) | Add SAML 2.0 SP metadata. | |
addOrganization ( array $orgName, array $orgDisplayName, array $orgURL ) | Add an Organization element based on data passed as parameters | |
addOrganizationInfo ( array $metadata ) | Add an Organization element based on metadata array. | |
addSecurityTokenServiceType ( array $metadata ) | Add a SecurityTokenServiceType for ADFS metadata. | |
getEntityDescriptor ( ) : DOMElement | Retrieve the EntityDescriptor element which is generated for this entity. | |
getEntityDescriptorText ( boolean $formatted = true ) : string | Retrieve the EntityDescriptor as text. |
Method | Description | |
---|---|---|
addAttributeConsumingService ( SAML2\XML\md\SPSSODescriptor $spDesc, SimpleSAML_Configuration $metadata ) | Add an AttributeConsumingService element to the metadata. | |
addCertificate ( SAML2\XML\md\RoleDescriptor $rd, SimpleSAML_Configuration $metadata ) | Add a certificate. | |
addExtensions ( SimpleSAML_Configuration $metadata, SAML2\XML\md\RoleDescriptor $e ) | Add extensions to the metadata. | |
addX509KeyDescriptor ( SAML2\XML\md\RoleDescriptor $rd, string $use, string $x509data ) | Add a KeyDescriptor with an X509 certificate. | |
createEndpoints ( array $endpoints, boolean $indexed ) : array | Add a list of endpoints to metadata. | |
setExpiration ( $metadata ) |
public __construct ( string $entityId, double | null $maxCache = null, double | null $maxDuration = null ) | ||
$entityId | string | The entity id of the entity. |
$maxCache | double | null | The maximum time in seconds the metadata should be cached. Defaults to null |
$maxDuration | double | null | The maximum time in seconds this metadata should be considered valid. Defaults to null. |
public addAttributeAuthority ( array $metadata ) | ||
$metadata | array | The AttributeAuthorityDescriptor, in the format returned by SimpleSAML_Metadata_SAMLParser. |
public addContact ( string $type, array $details ) | ||
$type | string | The type of contact. Deprecated. |
$details | array | The details about the contact. |
public addMetadata ( string $set, array $metadata ) | ||
$set | string | The metadata set this metadata comes from. |
$metadata | array | The metadata. |
public addMetadataIdP11 ( array $metadata ) | ||
$metadata | array | The metadata. |
public addMetadataIdP20 ( array $metadata ) | ||
$metadata | array | The metadata. |
public addMetadataSP11 ( array $metadata ) | ||
$metadata | array | The metadata. |
public addMetadataSP20 ( array $metadata, array $protocols = [SAML2\Constants::NS_SAMLP] ) | ||
$metadata | array | The metadata. |
$protocols | array | The protocols supported. Defaults to \SAML2\Constants::NS_SAMLP. |
public addOrganizationInfo ( array $metadata ) | ||
$metadata | array | The metadata we should extract the organization information from. |
public addSecurityTokenServiceType ( array $metadata ) | ||
$metadata | array | The metadata with the information about the SecurityTokenServiceType. |
public getEntityDescriptor ( ) : DOMElement | ||
return | DOMElement | The EntityDescriptor element of this entity. |
public getEntityDescriptorText ( boolean $formatted = true ) : string | ||
$formatted | boolean | Whether the returned EntityDescriptor should be formatted first. |
return | string | The serialized EntityDescriptor. |