2021-12-17 03:44:29 +00:00
|
|
|
{{#if (eq this.selectedAction "rotate")}}
|
|
|
|
{{#if this.key.canRotate}}
|
2019-05-17 17:29:21 +00:00
|
|
|
<ConfirmAction
|
|
|
|
@buttonClasses="toolbar-link"
|
|
|
|
@confirmTitle="Rotate this key?"
|
|
|
|
@confirmMessage="After rotation, all key actions will default to using the newest version of the key."
|
|
|
|
@confirmButtonText="Rotate"
|
|
|
|
@onConfirmAction={{action "doSubmit"}}
|
|
|
|
data-test-transit-key-rotate="true"
|
|
|
|
>
|
2019-02-14 16:04:46 +00:00
|
|
|
Rotate encryption key
|
2019-05-17 17:29:21 +00:00
|
|
|
</ConfirmAction>
|
2018-04-03 14:16:57 +00:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
<MessageError @errors={{this.errors}} />
|
|
|
|
{{#if this.selectedAction}}
|
|
|
|
<div data-test-transit-action={{this.selectedAction}}>
|
|
|
|
{{! template-lint-disable no-passed-in-event-handlers }}
|
|
|
|
{{component
|
|
|
|
(concat "transit-key-action/" this.selectedAction)
|
|
|
|
key=this.key
|
|
|
|
keys=this.keys
|
|
|
|
keyIsRSA=this.keyIsRSA
|
|
|
|
verification=this.verification
|
|
|
|
hmac=this.hmac
|
|
|
|
param=this.param
|
|
|
|
key_version=this.key_version
|
|
|
|
isModalActive=this.isModalActive
|
|
|
|
ciphertext=this.ciphertext
|
|
|
|
plaintext=this.plaintext
|
|
|
|
context=this.context
|
|
|
|
nonce=this.nonce
|
|
|
|
input=this.input
|
|
|
|
bits=this.bits
|
|
|
|
algorithm=this.algorithm
|
|
|
|
signature=this.signature
|
|
|
|
signature_algorithm=this.signature_algorithm
|
|
|
|
hash_algorithm=this.hash_algorithm
|
|
|
|
prehashed=this.prehashed
|
|
|
|
wrappedToken=this.wrappedToken
|
|
|
|
exportKeyType=this.exportKeyType
|
|
|
|
exportKeyVersion=this.exportKeyVersion
|
|
|
|
encodedBase64=this.encodedBase64
|
|
|
|
doSubmit=(action "doSubmit")
|
|
|
|
toggleModal=(action "toggleModal")
|
|
|
|
clearParams=(action "clearParams")
|
2021-06-11 21:44:57 +00:00
|
|
|
}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|