Class MasterKeyRequest

java.lang.Object
com.amazonaws.encryptionsdk.MasterKeyRequest

public final class MasterKeyRequest extends Object
Contains information which MasterKeyProviders can use to select which MasterKeys to use to protect a given plaintext. This class is immutable.
  • Method Details

    • getEncryptionContext

      public Map<String,​String> getEncryptionContext()
    • isStreaming

      public boolean isStreaming()
    • getPlaintext

      public byte[] getPlaintext()
      The plaintext, if available, to be protected by this request. Otherwise, null.
    • getSize

      public long getSize()
      The size of the plaintext, if available. Otherwise -1.
    • newBuilder

      public static MasterKeyRequest.Builder newBuilder()