If the generateKeyValue method in the Key Type plugin type is static, it can be called without needing to instantiate a Key class, in order to produce a key value that fits the requirements specific to the key type. In order for this to work properly, the method should receive configuration settings as a parameter and it must be assumed that there are no other inputs (such as a key entity) necessary to generate the key value.

Comments

rlhawk created an issue. See original summary.

rlhawk’s picture

Status: Active » Needs review
StatusFileSize
new1.9 KB

Here's a patch.

Status: Needs review » Needs work

The last submitted patch, 2: make_generatekeyvalue_a-2646386-2.patch, failed testing.

rlhawk’s picture

Status: Needs work » Needs review

  • rlhawk committed 3b66468 on 8.x-1.x
    Issue #2646386 by rlhawk: Make generateKeyValue a static method
    
rlhawk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.