Vikas Kumar created RANGER-5411:
-----------------------------------
Summary: Refactor logic to use external Key as MasterKey to avoid
code redundancy
Key: RANGER-5411
URL: https://issues.apache.org/jira/browse/RANGER-5411
Project: Ranger
Issue Type: Task
Components: kms
Reporter: Vikas Kumar
Assignee: Vikas Kumar
*Current behaviour:*
To import key from LunaHSM or KeySecure, there are two methods (
generateMKFromHSMMK and generateMKFromKeySecureMK ) in the RangerMasterKey
class, doing exactly the same thing.
*Expected behaviour:*
Super type, RangerKMSMKI should introduce a new aspect to import external
cryptographic key as MasterKey. Hence, it should have one method and other
implementations should override that.
Default implementation should throw UnsupportedOperationException.
This will help reuse the code , improve code maintenance and code can written
on super-type instead of specific class object.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)