ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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...
 

Data Fields

const KEY_LENGTH = 32
 

Private Member Functions

 generateRandomString (int $length)
 

Private Attributes

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 64 of file KeyRotationObjective.php.

64 : string
65 {
66 $return = '';
67 for ($i = 0; $i < $length; $i++) {
68 $return .= chr(random_int(33, 125));
69 }
70 return $return;
71 }

◆ 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 ILIAS\FileDelivery\Setup\KeyRotationObjective::KEY_LENGTH = 32

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: