[
https://issues.apache.org/jira/browse/RANGER-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vikas Kumar resolved RANGER-5411.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
PR have been reviewed and merged. hence marking the Jira resolved.
> 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
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> *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)