ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($entityId, $maxCache=null, $maxDuration=null) | |
Initialize the SAML builder. More... | |
getEntityDescriptor () | |
Retrieve the EntityDescriptor element which is generated for this entity. More... | |
getEntityDescriptorText ($formatted=true) | |
Retrieve the EntityDescriptor as text. More... | |
addSecurityTokenServiceType ($metadata) | |
Add a SecurityTokenServiceType for ADFS metadata. More... | |
addOrganization (array $orgName, array $orgDisplayName, array $orgURL) | |
Add an Organization element based on data passed as parameters. More... | |
addOrganizationInfo (array $metadata) | |
Add an Organization element based on metadata array. More... | |
addMetadata ($set, $metadata) | |
Add a specific type of metadata to an entity. More... | |
addMetadataSP20 ($metadata, $protocols=array(\SAML2\Constants::NS_SAMLP)) | |
Add SAML 2.0 SP metadata. More... | |
addMetadataIdP20 ($metadata) | |
Add metadata of a SAML 2.0 identity provider. More... | |
addMetadataSP11 ($metadata) | |
Add metadata of a SAML 1.1 service provider. More... | |
addMetadataIdP11 ($metadata) | |
Add metadata of a SAML 1.1 identity provider. More... | |
addAttributeAuthority (array $metadata) | |
Add metadata of a SAML attribute authority. More... | |
addContact ($type, $details) | |
Add contact information. More... | |
Private Member Functions | |
setExpiration ($metadata) | |
addExtensions (SimpleSAML_Configuration $metadata, \SAML2\XML\md\RoleDescriptor $e) | |
Add extensions to the metadata. More... | |
addAttributeConsumingService (\SAML2\XML\md\SPSSODescriptor $spDesc, SimpleSAML_Configuration $metadata) | |
Add an AttributeConsumingService element to the metadata. More... | |
addX509KeyDescriptor (\SAML2\XML\md\RoleDescriptor $rd, $use, $x509data) | |
Add a KeyDescriptor with an X509 certificate. More... | |
addCertificate (\SAML2\XML\md\RoleDescriptor $rd, SimpleSAML_Configuration $metadata) | |
Add a certificate. More... | |
Static Private Member Functions | |
static | createEndpoints (array $endpoints, $indexed) |
Add a list of endpoints to metadata. More... | |
Private Attributes | |
$entityDescriptor | |
$maxCache = null | |
$maxDuration = null | |
Definition at line 11 of file SAMLBuilder.php.
SimpleSAML_Metadata_SAMLBuilder::__construct | ( | $entityId, | |
$maxCache = null , |
|||
$maxDuration = null |
|||
) |
Initialize the SAML builder.
string | $entityId | The entity id of the entity. |
double | null | $maxCache | The maximum time in seconds the metadata should be cached. Defaults to null |
double | null | $maxDuration | The maximum time in seconds this metadata should be considered valid. Defaults to null. |
Definition at line 47 of file SAMLBuilder.php.
References $entityId, $maxCache, and $maxDuration.
SimpleSAML_Metadata_SAMLBuilder::addAttributeAuthority | ( | array | $metadata | ) |
Add metadata of a SAML attribute authority.
array | $metadata | The AttributeAuthorityDescriptor, in the format returned by SimpleSAML_Metadata_SAMLParser. |
Definition at line 643 of file SAMLBuilder.php.
Referenced by addMetadata().
|
private |
Add an AttributeConsumingService element to the metadata.
\SAML2\XML\md\SPSSODescriptor | $spDesc | The SPSSODescriptor element. |
SimpleSAML_Configuration | $metadata | The metadata. |
Definition at line 385 of file SAMLBuilder.php.
References $attributes, $name, $t, SimpleSAML_Configuration\getArray(), SimpleSAML_Configuration\getBoolean(), SimpleSAML_Configuration\getInteger(), SimpleSAML_Configuration\getLocalizedString(), SimpleSAML_Configuration\getString(), and SimpleSAML_Configuration\hasValue().
|
private |
Add a certificate.
Helper function for adding a certificate to the metadata.
\SAML2\XML\md\RoleDescriptor | $rd | The RoleDescriptor the certificate should be added to. |
SimpleSAML_Configuration | $metadata | The metadata of the entity. |
Definition at line 758 of file SAMLBuilder.php.
Referenced by addSecurityTokenServiceType().
SimpleSAML_Metadata_SAMLBuilder::addContact | ( | $type, | |
$details | |||
) |
Add contact information.
Accepts a contact type, and a contact array that must be previously sanitized.
WARNING: This function will change its signature and no longer parse a 'name' element.
string | $type | The type of contact. Deprecated. |
array | $details | The details about the contact. |
Change the signature to remove $type.
Remove the capability to pass a name and parse it inside the method.
Definition at line 682 of file SAMLBuilder.php.
|
private |
Add extensions to the metadata.
SimpleSAML_Configuration | $metadata | The metadata to get extensions from. |
\SAML2\XML\md\RoleDescriptor | $e | Reference to the element where the Extensions element should be included. |
Definition at line 140 of file SAMLBuilder.php.
References $lang, $s, $tag, SimpleSAML_Configuration\getArray(), SimpleSAML_Configuration\hasValue(), and SAML2\Utils\xsDateTimeToTimestamp().
SimpleSAML_Metadata_SAMLBuilder::addMetadata | ( | $set, | |
$metadata | |||
) |
Add a specific type of metadata to an entity.
string | $set | The metadata set this metadata comes from. |
array | $metadata | The metadata. |
Definition at line 440 of file SAMLBuilder.php.
References $metadata, addAttributeAuthority(), addMetadataIdP11(), addMetadataIdP20(), addMetadataSP11(), addMetadataSP20(), setExpiration(), and SimpleSAML\Logger\warning().
SimpleSAML_Metadata_SAMLBuilder::addMetadataIdP11 | ( | $metadata | ) |
Add metadata of a SAML 1.1 identity provider.
array | $metadata | The metadata. |
Definition at line 615 of file SAMLBuilder.php.
Referenced by addMetadata().
SimpleSAML_Metadata_SAMLBuilder::addMetadataIdP20 | ( | $metadata | ) |
Add metadata of a SAML 2.0 identity provider.
array | $metadata | The metadata. |
Definition at line 531 of file SAMLBuilder.php.
Referenced by addMetadata().
SimpleSAML_Metadata_SAMLBuilder::addMetadataSP11 | ( | $metadata | ) |
Add metadata of a SAML 1.1 service provider.
array | $metadata | The metadata. |
Definition at line 580 of file SAMLBuilder.php.
Referenced by addMetadata().
SimpleSAML_Metadata_SAMLBuilder::addMetadataSP20 | ( | $metadata, | |
$protocols = array(\SAML2\Constants::NS_SAMLP) |
|||
) |
Add SAML 2.0 SP metadata.
array | $metadata | The metadata. |
array | $protocols | The protocols supported. Defaults to ::NS_SAMLP. |
Definition at line 475 of file SAMLBuilder.php.
Referenced by addMetadata().
SimpleSAML_Metadata_SAMLBuilder::addOrganization | ( | array | $orgName, |
array | $orgDisplayName, | ||
array | $orgURL | ||
) |
Add an Organization element based on data passed as parameters.
array | $orgName | An array with the localized OrganizationName. |
array | $orgDisplayName | An array with the localized OrganizationDisplayName. |
array | $orgURL | An array with the localized OrganizationURL. |
Definition at line 283 of file SAMLBuilder.php.
References $orgName.
Referenced by addOrganizationInfo().
SimpleSAML_Metadata_SAMLBuilder::addOrganizationInfo | ( | array | $metadata | ) |
Add an Organization element based on metadata array.
array | $metadata | The metadata we should extract the organization information from. |
Definition at line 300 of file SAMLBuilder.php.
References $orgName, addOrganization(), and SimpleSAML\Utils\Arrays\arrayize().
SimpleSAML_Metadata_SAMLBuilder::addSecurityTokenServiceType | ( | $metadata | ) |
Add a SecurityTokenServiceType for ADFS metadata.
array | $metadata | The metadata with the information about the SecurityTokenServiceType. |
Definition at line 117 of file SAMLBuilder.php.
References $metadata, addCertificate(), and SimpleSAML_Configuration\loadFromArray().
|
private |
Add a KeyDescriptor with an X509 certificate.
\SAML2\XML\md\RoleDescriptor | $rd | The RoleDescriptor the certificate should be added to. |
string | $use | The value of the 'use' attribute. |
string | $x509data | The certificate data. |
Definition at line 739 of file SAMLBuilder.php.
|
staticprivate |
Add a list of endpoints to metadata.
array | $endpoints | The endpoints. |
bool | $indexed | Whether the endpoints should be indexed. |
Definition at line 326 of file SAMLBuilder.php.
SimpleSAML_Metadata_SAMLBuilder::getEntityDescriptor | ( | ) |
Retrieve the EntityDescriptor element which is generated for this entity.
Definition at line 81 of file SAMLBuilder.php.
References $xml.
Referenced by getEntityDescriptorText().
SimpleSAML_Metadata_SAMLBuilder::getEntityDescriptorText | ( | $formatted = true | ) |
Retrieve the EntityDescriptor as text.
This function serializes this EntityDescriptor, and returns it as text.
bool | $formatted | Whether the returned EntityDescriptor should be formatted first. |
Definition at line 99 of file SAMLBuilder.php.
References $xml, and getEntityDescriptor().
|
private |
Definition at line 59 of file SAMLBuilder.php.
References $maxDuration, and $metadata.
Referenced by addMetadata().
|
private |
Definition at line 20 of file SAMLBuilder.php.
|
private |
Definition at line 28 of file SAMLBuilder.php.
Referenced by __construct().
|
private |
Definition at line 36 of file SAMLBuilder.php.
Referenced by __construct(), and setExpiration().