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:
KmsDiscoveryKeyring.Builder,KmsKeyring.Builder,RawKeyring.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 protectedBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract KeyringTbuild()protected abstract BuilderTbuilder()BuilderTdataKeyGenerator(DataKeyGenerator dataKeyGenerator)BuilderTenableLegacyWrappingAlgorithms(boolean shouldEnableLegacyWrappingAlgorithms)BuilderTsecureRandom(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()
-
-