Class AwsKeyManagementService

java.lang.Object
ch.admin.bit.jeap.crypto.awskms.service.AwsKeyManagementService
All Implemented Interfaces:
ch.admin.bit.jeap.crypto.internal.core.keymanagement.KeyManagementService

public class AwsKeyManagementService extends Object implements ch.admin.bit.jeap.crypto.internal.core.keymanagement.KeyManagementService
  • Constructor Summary

    Constructors
    Constructor
    Description
    AwsKeyManagementService(AwsKmsClient kmsClient, EscrowKeyConfig defaultEscrowKey, Map<ch.admin.bit.jeap.crypto.api.KeyReference,EscrowKeyConfig> escrowKeys, ch.admin.bit.jeap.crypto.internal.core.escrow.EscrowEncryptionService escrowEncryptionService, ch.admin.bit.jeap.crypto.internal.core.keymanagement.CryptoMetricsService cryptoMetricsService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decryptDataKey(ch.admin.bit.jeap.crypto.api.KeyReference wrappingKeyReference, ch.admin.bit.jeap.crypto.internal.core.model.EncryptedDataKey dataKey)
     
    ch.admin.bit.jeap.crypto.internal.core.model.DataKeyPair
    getDataKey(ch.admin.bit.jeap.crypto.api.KeyReference wrappingKeyReference)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AwsKeyManagementService

      public AwsKeyManagementService(AwsKmsClient kmsClient, EscrowKeyConfig defaultEscrowKey, Map<ch.admin.bit.jeap.crypto.api.KeyReference,EscrowKeyConfig> escrowKeys, ch.admin.bit.jeap.crypto.internal.core.escrow.EscrowEncryptionService escrowEncryptionService, ch.admin.bit.jeap.crypto.internal.core.keymanagement.CryptoMetricsService cryptoMetricsService)
  • Method Details

    • getDataKey

      public ch.admin.bit.jeap.crypto.internal.core.model.DataKeyPair getDataKey(ch.admin.bit.jeap.crypto.api.KeyReference wrappingKeyReference)
      Specified by:
      getDataKey in interface ch.admin.bit.jeap.crypto.internal.core.keymanagement.KeyManagementService
    • decryptDataKey

      public byte[] decryptDataKey(ch.admin.bit.jeap.crypto.api.KeyReference wrappingKeyReference, ch.admin.bit.jeap.crypto.internal.core.model.EncryptedDataKey dataKey)
      Specified by:
      decryptDataKey in interface ch.admin.bit.jeap.crypto.internal.core.keymanagement.KeyManagementService