ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\FileDelivery\Setup\KeyRotationObjective Class Reference
+ Inheritance diagram for ILIAS\FileDelivery\Setup\KeyRotationObjective:
+ Collaboration diagram for ILIAS\FileDelivery\Setup\KeyRotationObjective:

Public Member Functions

 getArtifactName ()
 
- Public Member Functions inherited from ILIAS\FileDelivery\Setup\BuildStaticConfigStoredObjective
 getArtifactName ()
 
 build ()
 
 buildIn (Environment $env)
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Private Member Functions

 generateRandomString (int $length)
 

Private Attributes

const int KEY_LENGTH = 32
 
const int NUMBER_OF_KEYS = 5
 

Additional Inherited Members

- Static Public Member Functions inherited from ILIAS\FileDelivery\Setup\BuildStaticConfigStoredObjective
static PATH ()
 
- Protected Member Functions inherited from ILIAS\FileDelivery\Setup\BuildStaticConfigStoredObjective
 getPath ()
 
 makeDirectoryFor (string $path)
 
- Static Protected Member Functions inherited from ILIAS\FileDelivery\Setup\BuildStaticConfigStoredObjective
static saveName (string $name)
 

Detailed Description

Member Function Documentation

◆ generateRandomString()

ILIAS\FileDelivery\Setup\KeyRotationObjective::generateRandomString ( int  $length)
private

Definition at line 59 of file KeyRotationObjective.php.

59 : string
60 {
61 $return = '';
62 for ($i = 0; $i < $length; $i++) {
63 $return .= chr(random_int(33, 125));
64 }
65 return $return;
66 }

◆ getArtifactName()

ILIAS\FileDelivery\Setup\KeyRotationObjective::getArtifactName ( )

Reimplemented from ILIAS\FileDelivery\Setup\BuildStaticConfigStoredObjective.

Definition at line 34 of file KeyRotationObjective.php.

34 : string
35 {
36 return "key_rotation";
37 }

Field Documentation

◆ KEY_LENGTH

const int ILIAS\FileDelivery\Setup\KeyRotationObjective::KEY_LENGTH = 32
private

Definition at line 31 of file KeyRotationObjective.php.

◆ NUMBER_OF_KEYS

const int ILIAS\FileDelivery\Setup\KeyRotationObjective::NUMBER_OF_KEYS = 5
private

Definition at line 32 of file KeyRotationObjective.php.


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