ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\FileDelivery\Setup\KeyRotationObjective Class Reference
+ Inheritance diagram for ILIAS\FileDelivery\Setup\KeyRotationObjective:
+ Collaboration diagram for ILIAS\FileDelivery\Setup\KeyRotationObjective:

Public Member Functions

 getArtifactPath ()
 
- Public Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 getArtifactPath ()
 Get the filename where the builder wants to put its artifact. More...
 
 build ()
 Build the artifact based. More...
 
 buildIn (Setup\Environment $env)
 Builds an artifact in some given Environment. More...
 
 getPreconditions (Setup\Environment $environment)
 Defaults to no preconditions. More...
 
 getHash ()
 Uses hashed Path. More...
 
 getLabel ()
 Defaults to "Build $this->getArtifactPath()". More...
 
 isNotable ()
 Defaults to 'true'. More...
 
 achieve (Setup\Environment $environment)
 Builds the artifact and puts it in its location. More...
 
 isApplicable (Setup\Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 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_ROTATION = './src/FileDelivery/artifacts/key_rotation.php'
 
const KEY_LENGTH = 32
 

Private Member Functions

 generateRandomString (int $length)
 

Private Attributes

const NUMBER_OF_KEYS = 5
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 makeDirectoryFor (string $path)
 

Detailed Description

Member Function Documentation

◆ generateRandomString()

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

Definition at line 65 of file KeyRotationObjective.php.

Referenced by ILIAS\FileDelivery\Setup\KeyRotationObjective\getArtifactPath().

65  : string
66  {
67  $return = '';
68  for ($i = 0; $i < $length; $i++) {
69  $return .= chr(random_int(33, 125));
70  }
71  return $return;
72  }
+ Here is the caller graph for this function:

◆ getArtifactPath()

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

Definition at line 35 of file KeyRotationObjective.php.

References ILIAS\Setup\Artifact\BuildArtifactObjective\build(), and ILIAS\FileDelivery\Setup\KeyRotationObjective\generateRandomString().

35  : string
36  {
37  return self::KEY_ROTATION;
38  }
+ Here is the call graph for this function:

Field Documentation

◆ KEY_LENGTH

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

Definition at line 32 of file KeyRotationObjective.php.

◆ KEY_ROTATION

const ILIAS\FileDelivery\Setup\KeyRotationObjective::KEY_ROTATION = './src/FileDelivery/artifacts/key_rotation.php'

Definition at line 31 of file KeyRotationObjective.php.

Referenced by ILIAS\FileDelivery\Init\init().

◆ NUMBER_OF_KEYS

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

Definition at line 33 of file KeyRotationObjective.php.


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