ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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...
 
 has ($key)
 Query for whether or not the configuration has a value for the key. More...
 
 get ($key, $default=null)
 Query to get the value in the configuration for the given 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.

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 }

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

+ 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.

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

References SAML2\Configuration\PrivateKey\$filePath.

◆ getName()

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

Definition at line 76 of file PrivateKey.php.

77 {
78 return $this->name;
79 }

References SAML2\Configuration\PrivateKey\$name.

◆ getPassPhrase()

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

Definition at line 68 of file PrivateKey.php.

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

References SAML2\Configuration\PrivateKey\$passphrase.

◆ hasPassPhrase()

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

Definition at line 60 of file PrivateKey.php.

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

References SAML2\Configuration\PrivateKey\$passphrase.

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: