Skip to content

Commit

Permalink
chore: pr notes for MusapKeyManagerSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Jul 29, 2024
1 parent fac1f67 commit 8f1b4ed
Show file tree
Hide file tree
Showing 2 changed files with 17,182 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/musap-rn-kms/src/agent/MusapKeyManagerSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ export class MusapKeyManagementSystem extends AbstractKeyManagementSystem {
const keyAlgorithm = this.mapKeyTypeToAlgorithmType(args.type)
const attributes = 'attributes' in args ? args.attributes : null
const keyAlias = args.keyAlias ? args.keyAlias : uuid()
const keyUsage = args.keyUsage ? args.keyUsage : 'sign'
const role = args.role ? args.role : 'administrator'
const keyGenReq: KeyGenReq = {
keyAlgorithm: keyAlgorithm,
keyUsage: 'sign',
keyAlgorithm,
keyUsage,
keyAlias,
...(attributes && { ...attributes }),
role: 'administrator',
role,
}

try {
Expand Down
Loading

0 comments on commit 8f1b4ed

Please sign in to comment.