Class S3Keyring.Builder<KeyringT extends S3Keyring,BuilderT extends S3Keyring.Builder<KeyringT,BuilderT>>
- java.lang.Object
-
- software.amazon.encryption.s3.materials.S3Keyring.Builder<KeyringT,BuilderT>
-
- Direct Known Subclasses:
AesKeyring.Builder
,KmsDiscoveryKeyring.Builder
,KmsKeyring.Builder
,RsaKeyring.Builder
- Enclosing class:
- S3Keyring
public abstract static class S3Keyring.Builder<KeyringT extends S3Keyring,BuilderT extends S3Keyring.Builder<KeyringT,BuilderT>> extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract KeyringT
build()
protected abstract BuilderT
builder()
BuilderT
dataKeyGenerator(DataKeyGenerator dataKeyGenerator)
BuilderT
enableLegacyWrappingAlgorithms(boolean shouldEnableLegacyWrappingAlgorithms)
BuilderT
secureRandom(SecureRandom secureRandom)
Note that this does NOT create a defensive copy of the SecureRandom object.
-
-
-
Method Detail
-
builder
protected abstract BuilderT builder()
-
enableLegacyWrappingAlgorithms
public BuilderT enableLegacyWrappingAlgorithms(boolean shouldEnableLegacyWrappingAlgorithms)
-
secureRandom
public BuilderT secureRandom(SecureRandom secureRandom)
Note that this does NOT create a defensive copy of the SecureRandom object. Any modifications to the object will be reflected in this Builder.
-
dataKeyGenerator
public BuilderT dataKeyGenerator(DataKeyGenerator dataKeyGenerator)
-
build
public abstract KeyringT build()
-
-