Class KmsKeyStore


  • public class KmsKeyStore
    extends java.lang.Object
    Stores valid KMS key references for the S3MockApplication.
    • Constructor Summary

      Constructors 
      Constructor Description
      KmsKeyStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerKMSKeyRef​(java.lang.String validKeyRef)
      Register a valid KMS Key reference.
      boolean validateKeyRef​(java.lang.String keyRef)
      Validate if the KMS key reference is valid.
      • Methods inherited from class java.lang.Object

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

      • KmsKeyStore

        public KmsKeyStore()
    • Method Detail

      • registerKMSKeyRef

        public void registerKMSKeyRef​(java.lang.String validKeyRef)
        Register a valid KMS Key reference.
        Parameters:
        validKeyRef - A KMS Key reference.
      • validateKeyRef

        public boolean validateKeyRef​(java.lang.String keyRef)
        Validate if the KMS key reference is valid.
        Parameters:
        keyRef - A KMS Key reference.
        Returns:
        Returns true if the key is valid for this Mock instance.