Uses of Interface
com.amazonaws.encryptionsdk.CryptoMaterialsManager
Packages that use CryptoMaterialsManager
Package
Description
Contains
AwsCrypto, the primary entry-point to the Aws
Encryption SDK.Contains the internal classes that handle the cryptographic defined by the message formats and
algorithms.
-
Uses of CryptoMaterialsManager in com.amazonaws.encryptionsdk
Classes in com.amazonaws.encryptionsdk that implement CryptoMaterialsManagerModifier and TypeClassDescriptionclassThe default implementation ofCryptoMaterialsManager, used implicitly when passing aMasterKeyProviderto methods inAwsCrypto.Methods in com.amazonaws.encryptionsdk with parameters of type CryptoMaterialsManagerModifier and TypeMethodDescriptionAwsCrypto.createDecryptingStream(CryptoMaterialsManager materialsManager, InputStream is)Returns aCryptoInputStreamwhich decrypts the data after reading it from the underlyingInputStream.AwsCrypto.createDecryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)Returns aCryptoOutputStreamwhich decrypts the data prior to passing it onto the underlyingOutputStream.AwsCrypto.createEncryptingStream(CryptoMaterialsManager materialsManager, InputStream is)Returns the equivalent to callingAwsCrypto.createEncryptingStream(CryptoMaterialsManager, InputStream, Map)with an emptyencryptionContext.AwsCrypto.createEncryptingStream(CryptoMaterialsManager materialsManager, InputStream is, Map<String,String> encryptionContext)Returns aCryptoInputStreamwhich encrypts the data after reading it from the underlyingInputStream.AwsCrypto.createEncryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)Returns the equivalent to callingAwsCrypto.createEncryptingStream(CryptoMaterialsManager, OutputStream, Map)with an emptyencryptionContext.AwsCrypto.createEncryptingStream(CryptoMaterialsManager materialsManager, OutputStream os, Map<String,String> encryptionContext)Returns aCryptoOutputStreamwhich encrypts the data prior to passing it onto the underlyingOutputStream.AwsCrypto.createUnsignedMessageDecryptingStream(CryptoMaterialsManager materialsManager, InputStream is)Returns aCryptoInputStreamwhich decrypts the data after reading it from the underlyingInputStream.AwsCrypto.createUnsignedMessageDecryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)Returns aCryptoOutputStreamwhich decrypts the data prior to passing it onto the underlyingOutputStream.CryptoResult<byte[],?>AwsCrypto.decryptData(CryptoMaterialsManager materialsManager, byte[] ciphertext)Decrypts the provided ciphertext by delegating to the provided materialsManager to obtain the decryptedDataKey.CryptoResult<byte[],?>AwsCrypto.decryptData(CryptoMaterialsManager materialsManager, ParsedCiphertext ciphertext)CryptoResult<String,?>AwsCrypto.decryptString(CryptoMaterialsManager provider, String ciphertext)Deprecated.CryptoResult<byte[],?>AwsCrypto.encryptData(CryptoMaterialsManager materialsManager, byte[] plaintext)Returns the equivalent to callingAwsCrypto.encryptData(CryptoMaterialsManager, byte[], Map)with an emptyencryptionContext.CryptoResult<byte[],?>AwsCrypto.encryptData(CryptoMaterialsManager materialsManager, byte[] plaintext, Map<String,String> encryptionContext)Returns an encrypted form ofplaintextthat has been protected withDataKeysthat are in turn protected by the given CryptoMaterialsProvider.CryptoResult<String,?>AwsCrypto.encryptString(CryptoMaterialsManager materialsManager, String plaintext)Deprecated.Use theAwsCrypto.encryptData(CryptoMaterialsManager, byte[])andAwsCrypto.decryptData(CryptoMaterialsManager, byte[])APIs instead.CryptoResult<String,?>AwsCrypto.encryptString(CryptoMaterialsManager materialsManager, String plaintext, Map<String,String> encryptionContext)Deprecated.longAwsCrypto.estimateCiphertextSize(CryptoMaterialsManager materialsManager, int plaintextSize)Returns the equivalent to callingAwsCrypto.estimateCiphertextSize(CryptoMaterialsManager, int, Map)with an emptyencryptionContext.longAwsCrypto.estimateCiphertextSize(CryptoMaterialsManager materialsManager, int plaintextSize, Map<String,String> encryptionContext)Returns the best estimate for the output length of encrypting a plaintext with the providedplaintextSizeandencryptionContext. -
Uses of CryptoMaterialsManager in com.amazonaws.encryptionsdk.caching
Classes in com.amazonaws.encryptionsdk.caching that implement CryptoMaterialsManagerModifier and TypeClassDescriptionclassThe CachingCryptoMaterialsManager wraps anotherCryptoMaterialsManager, and caches its results.Methods in com.amazonaws.encryptionsdk.caching with parameters of type CryptoMaterialsManagerModifier and TypeMethodDescriptionCachingCryptoMaterialsManager.Builder.withBackingMaterialsManager(CryptoMaterialsManager backingCMM)Sets theCryptoMaterialsManagerthat should be queried when theCachingCryptoMaterialsManager(CCMM) incurs a cache miss. -
Uses of CryptoMaterialsManager in com.amazonaws.encryptionsdk.internal
Methods in com.amazonaws.encryptionsdk.internal with parameters of type CryptoMaterialsManagerModifier and TypeMethodDescriptionstatic DecryptionHandler<?>DecryptionHandler.create(CryptoMaterialsManager materialsManager, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)Create a decryption handler using the provided materials manager.static DecryptionHandler<?>DecryptionHandler.create(CryptoMaterialsManager materialsManager, CiphertextHeaders headers, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)Deprecated.This version may have to recalculate the number of bytes already parsed, which adds a performance penalty.static DecryptionHandler<?>DecryptionHandler.create(CryptoMaterialsManager materialsManager, ParsedCiphertext headers, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)Create a decryption handler using the provided materials manager and already parsedheaders.
AwsCrypto.decryptData(CryptoMaterialsManager, byte[])andAwsCrypto.encryptData(CryptoMaterialsManager, byte[], Map)APIs instead.