ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Configuration\PrivateKey Class Reference

Configuration of a private key. More...

+ Inheritance diagram for SAML2\Configuration\PrivateKey:
+ Collaboration diagram for SAML2\Configuration\PrivateKey:

Public Member Functions

 __construct ($filePath, $name, $passphrase=null)
 
 getFilePath ()
 
 hasPassPhrase ()
 
 getPassPhrase ()
 
 getName ()
 
- Public Member Functions inherited from SAML2\Configuration\ArrayAdapter
 __construct (array $configuration)
 
 get ($key, $defaultValue=null)
 Query to get the value in the configuration for the given key. More...
 
 has ($key)
 Query for whether or not the configuration has a value for the key. More...
 

Data Fields

const NAME_NEW = 'new'
 
const NAME_DEFAULT = 'default'
 

Private Attributes

 $filePath
 
 $passphrase
 
 $name
 

Detailed Description

Configuration of a private key.

Definition at line 10 of file PrivateKey.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Configuration\PrivateKey::__construct (   $filePath,
  $name,
  $passphrase = null 
)

Definition at line 30 of file PrivateKey.php.

References SAML2\Configuration\PrivateKey\$filePath, SAML2\Configuration\PrivateKey\$name, SAML2\Configuration\PrivateKey\$passphrase, and SAML2\Exception\InvalidArgumentException\invalidType().

31  {
32  if (!is_string($filePath)) {
34  }
35 
36  if (!is_string($name)) {
38  }
39 
40  if ($passphrase && !is_string($passphrase)) {
42  }
43 
44  $this->filePath = $filePath;
45  $this->passphrase = $passphrase;
46  $this->name = $name;
47  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getFilePath()

SAML2\Configuration\PrivateKey::getFilePath ( )
Returns
string

Definition at line 52 of file PrivateKey.php.

References SAML2\Configuration\PrivateKey\$filePath.

53  {
54  return $this->filePath;
55  }

◆ getName()

SAML2\Configuration\PrivateKey::getName ( )
Returns
string

Definition at line 76 of file PrivateKey.php.

References SAML2\Configuration\PrivateKey\$name.

Referenced by SAML2\Configuration\IdentityProvider\getPrivateKey(), and SAML2\Configuration\ServiceProvider\getPrivateKey().

77  {
78  return $this->name;
79  }
+ Here is the caller graph for this function:

◆ getPassPhrase()

SAML2\Configuration\PrivateKey::getPassPhrase ( )
Returns
string

Definition at line 68 of file PrivateKey.php.

References SAML2\Configuration\PrivateKey\$passphrase.

69  {
70  return $this->passphrase;
71  }

◆ hasPassPhrase()

SAML2\Configuration\PrivateKey::hasPassPhrase ( )
Returns
bool

Definition at line 60 of file PrivateKey.php.

References SAML2\Configuration\PrivateKey\$passphrase.

61  {
62  return (bool) $this->passphrase;
63  }

Field Documentation

◆ $filePath

SAML2\Configuration\PrivateKey::$filePath
private

◆ $name

SAML2\Configuration\PrivateKey::$name
private

◆ $passphrase

SAML2\Configuration\PrivateKey::$passphrase
private

◆ NAME_DEFAULT

const SAML2\Configuration\PrivateKey::NAME_DEFAULT = 'default'

◆ NAME_NEW

const SAML2\Configuration\PrivateKey::NAME_NEW = 'new'

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