ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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\Setup\Artifact\BuildArtifactObjective
 getArtifactName ()
 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 ' . 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_LENGTH = 32
 

Private Member Functions

 generateRandomString (int $length)
 

Private Attributes

const NUMBER_OF_KEYS = 5
 

Additional Inherited Members

- Static Public Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
static PATH ()
 
- Protected Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 getPath ()
 
 makeDirectoryFor (string $path)
 
- Protected Attributes inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
const ARTIFACTS = __DIR__ . "/../../../../../artifacts"
 

Detailed Description

Member Function Documentation

◆ generateRandomString()

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

Definition at line 68 of file KeyRotationObjective.php.

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

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

◆ getArtifactName()

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

Definition at line 37 of file KeyRotationObjective.php.

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

37  : string
38  {
39  return "key_rotation";
40  }
+ 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.

◆ NUMBER_OF_KEYS

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

Definition at line 36 of file KeyRotationObjective.php.


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