ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Certificate\Exception\InvalidKeyUsageException Class Reference

Named exception for when a non-existent key-usage is given. More...

+ Inheritance diagram for SAML2\Certificate\Exception\InvalidKeyUsageException:
+ Collaboration diagram for SAML2\Certificate\Exception\InvalidKeyUsageException:

Public Member Functions

 __construct ($usage)
 

Additional Inherited Members

- Static Public Member Functions inherited from SAML2\Exception\InvalidArgumentException
static invalidType ($expected, $parameter)
 

Detailed Description

Named exception for when a non-existent key-usage is given.

Definition at line 11 of file InvalidKeyUsageException.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Certificate\Exception\InvalidKeyUsageException::__construct (   $usage)
Parameters
string$usage

Definition at line 17 of file InvalidKeyUsageException.php.

References $message, and SAML2\Certificate\Key\getValidKeyUsages().

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  }
catch(Exception $e) $message
static getValidKeyUsages()
Returns the list of valid key usage options.
Definition: Key.php:53
+ Here is the call graph for this function:

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