Uses of Interface
com.amazonaws.encryptionsdk.CryptoMaterialsManager
-
Packages that use CryptoMaterialsManager Package Description com.amazonaws.encryptionsdk ContainsAwsCrypto
, the primary entry-point to the Aws Encryption SDK.com.amazonaws.encryptionsdk.caching com.amazonaws.encryptionsdk.internal 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 CryptoMaterialsManager Modifier and Type Class Description class
DefaultCryptoMaterialsManager
The default implementation ofCryptoMaterialsManager
, used implicitly when passing aMasterKeyProvider
to methods inAwsCrypto
.Methods in com.amazonaws.encryptionsdk with parameters of type CryptoMaterialsManager Modifier and Type Method Description CryptoInputStream<?>
AwsCrypto. createDecryptingStream(CryptoMaterialsManager materialsManager, InputStream is)
Returns aCryptoInputStream
which decrypts the data after reading it from the underlyingInputStream
.CryptoOutputStream<?>
AwsCrypto. createDecryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)
Returns aCryptoOutputStream
which decrypts the data prior to passing it onto the underlyingOutputStream
.CryptoInputStream<?>
AwsCrypto. createEncryptingStream(CryptoMaterialsManager materialsManager, InputStream is)
Returns the equivalent to callingAwsCrypto.createEncryptingStream(CryptoMaterialsManager, InputStream, Map)
with an emptyencryptionContext
.CryptoInputStream<?>
AwsCrypto. createEncryptingStream(CryptoMaterialsManager materialsManager, InputStream is, Map<String,String> encryptionContext)
Returns aCryptoInputStream
which encrypts the data after reading it from the underlyingInputStream
.CryptoOutputStream<?>
AwsCrypto. createEncryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)
Returns the equivalent to callingAwsCrypto.createEncryptingStream(CryptoMaterialsManager, OutputStream, Map)
with an emptyencryptionContext
.CryptoOutputStream<?>
AwsCrypto. createEncryptingStream(CryptoMaterialsManager materialsManager, OutputStream os, Map<String,String> encryptionContext)
Returns aCryptoOutputStream
which encrypts the data prior to passing it onto the underlyingOutputStream
.CryptoInputStream<?>
AwsCrypto. createUnsignedMessageDecryptingStream(CryptoMaterialsManager materialsManager, InputStream is)
Returns aCryptoInputStream
which decrypts the data after reading it from the underlyingInputStream
.CryptoOutputStream<?>
AwsCrypto. createUnsignedMessageDecryptingStream(CryptoMaterialsManager materialsManager, OutputStream os)
Returns aCryptoOutputStream
which 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 ofplaintext
that has been protected withDataKeys
that 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.long
AwsCrypto. estimateCiphertextSize(CryptoMaterialsManager materialsManager, int plaintextSize)
Returns the equivalent to callingAwsCrypto.estimateCiphertextSize(CryptoMaterialsManager, int, Map)
with an emptyencryptionContext
.long
AwsCrypto. estimateCiphertextSize(CryptoMaterialsManager materialsManager, int plaintextSize, Map<String,String> encryptionContext)
Returns the best estimate for the output length of encrypting a plaintext with the providedplaintextSize
andencryptionContext
. -
Uses of CryptoMaterialsManager in com.amazonaws.encryptionsdk.caching
Classes in com.amazonaws.encryptionsdk.caching that implement CryptoMaterialsManager Modifier and Type Class Description class
CachingCryptoMaterialsManager
The CachingCryptoMaterialsManager wraps anotherCryptoMaterialsManager
, and caches its results.Methods in com.amazonaws.encryptionsdk.caching with parameters of type CryptoMaterialsManager Modifier and Type Method Description CachingCryptoMaterialsManager.Builder
CachingCryptoMaterialsManager.Builder. withBackingMaterialsManager(CryptoMaterialsManager backingCMM)
Sets theCryptoMaterialsManager
that 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 CryptoMaterialsManager Modifier and Type Method Description static 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
.
-