ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
InvalidKeyUsageException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
SAML2\Certificate\Exception
;
4
5
use
SAML2\Certificate\Key
;
6
use
SAML2\Exception\Throwable
;
7
11
class
InvalidKeyUsageException
extends
\InvalidArgumentException
implements
12
Throwable
13
{
17
public
function
__construct
($usage)
18
{
19
$message
= sprintf(
20
'Invalid key usage given: "%s", usages "%s" allowed'
,
21
is_string($usage) ? $usage : gettype($usage),
22
implode(
'", "'
,
Key::getValidKeyUsages
())
23
);
24
25
parent::__construct(
$message
);
26
}
27
}
SAML2\Certificate\Exception\InvalidKeyUsageException
Named exception for when a non-existent key-usage is given.
Definition:
InvalidKeyUsageException.php:11
Key
Throwable
$message
catch(Exception $e) $message
Definition:
saml2-logout.php:34
SAML2\Certificate\Key\getValidKeyUsages
static getValidKeyUsages()
Returns the list of valid key usage options.
Definition:
Key.php:53
SAML2\Certificate\Exception
Definition:
InvalidCertificateStructureException.php:3
SAML2\Certificate\Exception\InvalidKeyUsageException\__construct
__construct($usage)
Definition:
InvalidKeyUsageException.php:17
SAML2\Exception\InvalidArgumentException
Definition:
InvalidArgumentException.php:5
Throwable
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Certificate
Exception
InvalidKeyUsageException.php
Generated on Tue Jan 28 2025 19:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)