Class EncryptionMaterials
- java.lang.Object
-
- software.amazon.encryption.s3.materials.EncryptionMaterials
-
- All Implemented Interfaces:
CryptographicMaterials
public final class EncryptionMaterials extends Object implements CryptographicMaterials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptionMaterials.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmSuite
algorithmSuite()
static EncryptionMaterials.Builder
builder()
CipherMode
cipherMode()
Provider
cryptoProvider()
SecretKey
dataKey()
List<EncryptedDataKey>
encryptedDataKeys()
Note that the underlying implementation uses a Collections.unmodifiableList which is immutable.Map<String,String>
encryptionContext()
Note that the underlying implementation uses a Collections.unmodifiableMap which is immutable.Cipher
getCipher(byte[] iv)
long
getCiphertextLength()
long
getPlaintextLength()
byte[]
plaintextDataKey()
software.amazon.awssdk.services.s3.model.S3Request
s3Request()
EncryptionMaterials.Builder
toBuilder()
-
-
-
Method Detail
-
builder
public static EncryptionMaterials.Builder builder()
-
s3Request
public software.amazon.awssdk.services.s3.model.S3Request 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
-
encryptedDataKeys
public List<EncryptedDataKey> encryptedDataKeys()
Note that the underlying implementation uses a Collections.unmodifiableList which is immutable.
-
plaintextDataKey
public byte[] plaintextDataKey()
-
getPlaintextLength
public long getPlaintextLength()
-
getCiphertextLength
public long getCiphertextLength()
-
dataKey
public SecretKey dataKey()
- Specified by:
dataKey
in interfaceCryptographicMaterials
-
cryptoProvider
public Provider cryptoProvider()
- Specified by:
cryptoProvider
in interfaceCryptographicMaterials
-
cipherMode
public CipherMode cipherMode()
- Specified by:
cipherMode
in interfaceCryptographicMaterials
-
getCipher
public Cipher getCipher(byte[] iv)
- Specified by:
getCipher
in interfaceCryptographicMaterials
-
toBuilder
public EncryptionMaterials.Builder toBuilder()
-
-