ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
PrivateKey.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
SAML2\Configuration
;
4
5
use
SAML2\Exception\InvalidArgumentException
;
6
10
class
PrivateKey
extends
ArrayAdapter
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
)) {
33
throw
InvalidArgumentException::invalidType
(
'string'
,
$filePath
);
34
}
35
36
if
(!is_string(
$name
)) {
37
throw
InvalidArgumentException::invalidType
(
'string'
,
$name
);
38
}
39
40
if
(
$passphrase
&& !is_string(
$passphrase
)) {
41
throw
InvalidArgumentException::invalidType
(
'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
}
InvalidArgumentException
SAML2\Configuration\PrivateKey\hasPassPhrase
hasPassPhrase()
Definition:
PrivateKey.php:60
SAML2\Exception\InvalidArgumentException\invalidType
static invalidType($expected, $parameter)
Definition:
InvalidArgumentException.php:13
SAML2\Configuration\PrivateKey\$filePath
$filePath
Definition:
PrivateKey.php:18
SAML2\Configuration\PrivateKey\getPassPhrase
getPassPhrase()
Definition:
PrivateKey.php:68
SAML2\Configuration\PrivateKey\NAME_DEFAULT
const NAME_DEFAULT
Definition:
PrivateKey.php:13
SAML2\Configuration
Definition:
ArrayAdapter.php:3
SAML2\Configuration\PrivateKey\__construct
__construct($filePath, $name, $passphrase=null)
Definition:
PrivateKey.php:30
SAML2\Configuration\PrivateKey\$name
$name
Definition:
PrivateKey.php:28
SAML2\Configuration\PrivateKey\$passphrase
$passphrase
Definition:
PrivateKey.php:23
SAML2\Configuration\PrivateKey\getFilePath
getFilePath()
Definition:
PrivateKey.php:52
SAML2\Configuration\PrivateKey\NAME_NEW
const NAME_NEW
Definition:
PrivateKey.php:12
SAML2\Configuration\PrivateKey
Configuration of a private key.
Definition:
PrivateKey.php:10
SAML2\Configuration\ArrayAdapter
Default implementation for configuration.
Definition:
ArrayAdapter.php:8
SAML2\Configuration\PrivateKey\getName
getName()
Definition:
PrivateKey.php:76
php
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Configuration
PrivateKey.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)