Class DecryptionMaterials
- java.lang.Object
-
- software.amazon.encryption.s3.materials.DecryptionMaterials
-
- All Implemented Interfaces:
CryptographicMaterials
public final class DecryptionMaterials extends Object implements CryptographicMaterials
-
-
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()MaterialsDescriptionmaterialsDescription()Returns the materials description used for RSA and AES keyrings.byte[]plaintextDataKey()software.amazon.awssdk.services.s3.model.GetObjectRequests3Request()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()
-
toBuilder
public DecryptionMaterials.Builder toBuilder()
-
-