public static class X509CredentialsProvider.X509CredentialsProviderBuilder extends Object
Constructor and Description |
---|
X509CredentialsProviderBuilder() |
Modifier and Type | Method and Description |
---|---|
X509CredentialsProvider |
build() |
X509CredentialsProvider.X509CredentialsProviderBuilder |
withClientBootstrap(ClientBootstrap clientBootstrap)
Sets the client bootstrap (host resolver and event loop group) to use when making the connections
required by this provider.
|
X509CredentialsProvider.X509CredentialsProviderBuilder |
withEndpoint(String endpoint)
Sets the endpoint to fetch credentials from.
|
X509CredentialsProvider.X509CredentialsProviderBuilder |
withProxyOptions(HttpProxyOptions proxyOptions)
Sets the proxy configuration to use when making the http request that fetches session
credentials from the IoT x509 credentials provider service
|
X509CredentialsProvider.X509CredentialsProviderBuilder |
withRoleAlias(String roleAlias)
Sets the role alias to fetch credentials through
|
X509CredentialsProvider.X509CredentialsProviderBuilder |
withThingName(String thingName)
Sets the iot thing name to fetch credentials by.
|
X509CredentialsProvider.X509CredentialsProviderBuilder |
withTlsContext(TlsContext tlsContext)
Sets the tls context initialized with a x509 certificate and private key suitable for
queries against the account's iot credential provider endpoint
|
public X509CredentialsProvider.X509CredentialsProviderBuilder withClientBootstrap(ClientBootstrap clientBootstrap)
clientBootstrap
- client bootstrap to usepublic X509CredentialsProvider.X509CredentialsProviderBuilder withTlsContext(TlsContext tlsContext)
tlsContext
- the tls context to use when establishing the http connection to iotpublic X509CredentialsProvider.X509CredentialsProviderBuilder withThingName(String thingName)
thingName
- name of the thing to usepublic X509CredentialsProvider.X509CredentialsProviderBuilder withRoleAlias(String roleAlias)
roleAlias
- name of the role alias to usepublic X509CredentialsProvider.X509CredentialsProviderBuilder withEndpoint(String endpoint)
endpoint
- credentials provider endpointpublic X509CredentialsProvider.X509CredentialsProviderBuilder withProxyOptions(HttpProxyOptions proxyOptions)
proxyOptions
- proxy configuration for the credentials fetching http requestpublic X509CredentialsProvider build()
Copyright © 2021. All rights reserved.