ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PrivateKey.php
Go to the documentation of this file.
1<?php
2
3namespace SAML2\Configuration;
4
6
11{
12 const NAME_NEW = 'new';
13 const NAME_DEFAULT = 'default';
14
18 private $filePath;
19
23 private $passphrase;
24
28 private $name;
29
30 public function __construct($filePath, $name, $passphrase = null)
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 }
48
52 public function getFilePath()
53 {
54 return $this->filePath;
55 }
56
60 public function hasPassPhrase()
61 {
62 return (bool) $this->passphrase;
63 }
64
68 public function getPassPhrase()
69 {
70 return $this->passphrase;
71 }
72
76 public function getName()
77 {
78 return $this->name;
79 }
80}
An exception for terminatinating execution or to throw for unit testing.
Default implementation for configuration.
Definition: ArrayAdapter.php:9
Configuration of a private key.
Definition: PrivateKey.php:11
__construct($filePath, $name, $passphrase=null)
Definition: PrivateKey.php:30