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 class
DecryptionMaterials.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmSuite
algorithmSuite()
static DecryptionMaterials.Builder
builder()
CipherMode
cipherMode()
long
ciphertextLength()
Provider
cryptoProvider()
SecretKey
dataKey()
Map<String,String>
encryptionContext()
Note that the underlying implementation uses a Collections.unmodifiableMap which is immutable.Cipher
getCipher(byte[] iv)
String
getContentRange()
byte[]
plaintextDataKey()
software.amazon.awssdk.services.s3.model.GetObjectRequest
s3Request()
DecryptionMaterials.Builder
toBuilder()
-
-
-
Method Detail
-
builder
public static DecryptionMaterials.Builder builder()
-
s3Request
public software.amazon.awssdk.services.s3.model.GetObjectRequest s3Request()
- Specified by:
s3Request
in interfaceCryptographicMaterials
-
algorithmSuite
public AlgorithmSuite algorithmSuite()
- Specified by:
algorithmSuite
in interfaceCryptographicMaterials
-
encryptionContext
public Map<String,String> encryptionContext()
Note that the underlying implementation uses a Collections.unmodifiableMap which is immutable.- Specified by:
encryptionContext
in interfaceCryptographicMaterials
-
plaintextDataKey
public byte[] plaintextDataKey()
-
dataKey
public SecretKey dataKey()
- Specified by:
dataKey
in interfaceCryptographicMaterials
-
cryptoProvider
public Provider cryptoProvider()
- Specified by:
cryptoProvider
in interfaceCryptographicMaterials
-
ciphertextLength
public long ciphertextLength()
-
cipherMode
public CipherMode cipherMode()
- Specified by:
cipherMode
in interfaceCryptographicMaterials
-
getCipher
public Cipher getCipher(byte[] iv)
- Specified by:
getCipher
in interfaceCryptographicMaterials
-
getContentRange
public String getContentRange()
-
toBuilder
public DecryptionMaterials.Builder toBuilder()
-
-