Class DecryptionMaterials
- java.lang.Object
-
- software.amazon.encryption.s3.materials.DecryptionMaterials
-
- All Implemented Interfaces:
CryptographicMaterials
public final class DecryptionMaterials extends Object implements CryptographicMaterials
Contains the cryptographic materials needed for a decryption operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDecryptionMaterials.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmSuitealgorithmSuite()static DecryptionMaterials.Builderbuilder()CipherModecipherMode()longciphertextLength()ProvidercryptoProvider()SecretKeydataKey()Map<String,String>encryptionContext()Note that the underlying implementation uses a Collections.unmodifiableMap which is immutable.CiphergetCipher(byte[] iv)StringgetContentRange()byte[]getKeyCommitment()byte[]iv()MaterialsDescriptionmaterialsDescription()Returns the materials description used for RSA and AES keyrings.byte[]messageId()byte[]plaintextDataKey()software.amazon.awssdk.services.s3.model.GetObjectRequests3Request()voidsetIvAndMessageId(byte[] iv, byte[] messageId)DecryptionMaterials.BuildertoBuilder()
-
-
-
Method Detail
-
builder
public static DecryptionMaterials.Builder builder()
-
s3Request
public software.amazon.awssdk.services.s3.model.GetObjectRequest s3Request()
- Specified by:
s3Requestin interfaceCryptographicMaterials
-
algorithmSuite
public AlgorithmSuite algorithmSuite()
- Specified by:
algorithmSuitein interfaceCryptographicMaterials
-
encryptionContext
public Map<String,String> encryptionContext()
Note that the underlying implementation uses a Collections.unmodifiableMap which is immutable.- Specified by:
encryptionContextin interfaceCryptographicMaterials
-
materialsDescription
public MaterialsDescription materialsDescription()
Returns the materials description used for RSA and AES keyrings.- Returns:
- the materials description
-
plaintextDataKey
public byte[] plaintextDataKey()
-
dataKey
public SecretKey dataKey()
- Specified by:
dataKeyin interfaceCryptographicMaterials
-
cryptoProvider
public Provider cryptoProvider()
- Specified by:
cryptoProviderin interfaceCryptographicMaterials
-
ciphertextLength
public long ciphertextLength()
-
cipherMode
public CipherMode cipherMode()
- Specified by:
cipherModein interfaceCryptographicMaterials
-
getCipher
public Cipher getCipher(byte[] iv)
- Specified by:
getCipherin interfaceCryptographicMaterials
-
getContentRange
public String getContentRange()
-
getKeyCommitment
public byte[] getKeyCommitment()
- Specified by:
getKeyCommitmentin interfaceCryptographicMaterials
-
messageId
public byte[] messageId()
- Specified by:
messageIdin interfaceCryptographicMaterials
-
iv
public byte[] iv()
- Specified by:
ivin interfaceCryptographicMaterials
-
setIvAndMessageId
public void setIvAndMessageId(byte[] iv, byte[] messageId)
-
toBuilder
public DecryptionMaterials.Builder toBuilder()
-
-