ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Utilities\Certificate Class Reference

Collection of Utility functions specifically for certificates. More...

+ Collaboration diagram for SAML2\Utilities\Certificate:

Static Public Member Functions

static hasValidStructure ($certificate)
 
static convertToCertificate ($X509CertificateContents)
 

Data Fields

const CERTIFICATE_PATTERN = '/^-----BEGIN CERTIFICATE-----([^-]*)^-----END CERTIFICATE-----/m'
 The pattern that the contents of a certificate should adhere to. More...
 

Detailed Description

Collection of Utility functions specifically for certificates.

Definition at line 8 of file Certificate.php.

Member Function Documentation

◆ convertToCertificate()

static SAML2\Utilities\Certificate::convertToCertificate (   $X509CertificateContents)
static
Parameters
string$X509CertificateContents
Returns
string

Definition at line 30 of file Certificate.php.

31  {
32  return "-----BEGIN CERTIFICATE-----\n"
33  . chunk_split($X509CertificateContents, 64)
34  . "-----END CERTIFICATE-----\n";
35  }

◆ hasValidStructure()

static SAML2\Utilities\Certificate::hasValidStructure (   $certificate)
static
Parameters
$certificate
Returns
bool

Definition at line 20 of file Certificate.php.

References $certificate.

Referenced by SAML2\Certificate\KeyLoader\loadCertificateFile().

21  {
22  return !!preg_match(self::CERTIFICATE_PATTERN, $certificate);
23  }
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
Definition: example_052.php:77
+ Here is the caller graph for this function:

Field Documentation

◆ CERTIFICATE_PATTERN

const SAML2\Utilities\Certificate::CERTIFICATE_PATTERN = '/^-----BEGIN CERTIFICATE-----([^-]*)^-----END CERTIFICATE-----/m'

The pattern that the contents of a certificate should adhere to.

Definition at line 13 of file Certificate.php.

Referenced by SAML2\Certificate\KeyLoader\loadCertificateFile().


The documentation for this class was generated from the following file: