public static interface KeyProvider.Builder
| Modifier and Type | Method and Description |
|---|---|
KeyProvider |
build() |
KeyProvider.Builder |
withCredProvider(CredProvider credProvider) |
KeyProvider.Builder |
withEndpoint(URI endpoint) |
KeyProvider.Builder |
withKey(byte[] key) |
KeyProvider.Builder |
withProxy(URI proxy) |
KeyProvider.Builder withCredProvider(CredProvider credProvider)
credProvider - is used to obtain the AWS key id and secret
when communicating with KMS.KeyProvider.Builder withEndpoint(URI endpoint)
endpoint - is the endpoint to use when communicating with
AWS KMS. This may be of the format "kms://<region>".KeyProvider.Builder withProxy(URI proxy)
proxy - is the proxy to use when communicating with AWS KMS.KeyProvider.Builder withKey(byte[] key)
key - is the raw key. 16 bytes are assumed to be AES keys and
anything more than is assumed to be encrypted with AWS KMS.KeyProvider build()
Copyright © 2019. All rights reserved.