Uses of Interface
com.okta.sdk.client.ClientBuilder
-
Uses of ClientBuilder in com.okta.sdk.client
Modifier and TypeMethodDescriptionstatic ClientBuilder
Clients.builder()
Returns newClientBuilder
instance, used to constructApiClient
instances.ClientBuilder.setAuthorizationMode
(AuthorizationMode authorizationMode) Overrides the default (very secure) Okta SSWS Digest Authentication Scheme used to authenticate every request sent to the Okta API server.ClientBuilder.setCacheManager
(CacheManager cacheManager) Sets theCacheManager
that should be used to cache Okta REST resources, reducing round-trips to the Okta API server and enhancing application performance.ClientBuilder.setClientCredentials
(ClientCredentials clientCredentials) Allows specifying anApiKey
instance directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setClientId
(String clientId) Allows specifying the client ID instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setConnectionTimeout
(int timeout) Sets both the timeout until a connection is established and the socket timeout (i.e.ClientBuilder.setCustomJwtSigner
(UnaryOperator<byte[]> jwtSigner, String algorithm) Allows specifying a custom signer for signing JWT token, instead of using a locally stored private key.Allows specifying the Key ID (kid) instead of relying on the YAML config.ClientBuilder.setOAuth2AccessToken
(String oAuth2AccessToken) Allows specifying the user obtained OAuth2 access token to be used by the SDK.Sets the base URL of the Okta REST API to use.ClientBuilder.setPrivateKey
(InputStream privateKeyInputStream) Allows specifying the private key (PEM file) path (for private key jwt authentication) directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setPrivateKey
(String privateKey) Allows specifying the private key (PEM file) path (for private key jwt authentication) directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setPrivateKey
(Path privateKeyPath) Allows specifying the private key (PEM file) path (for private key jwt authentication) directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setPrivateKey
(PrivateKey privateKey) Allows specifying the private key (PEM file) path (for private key jwt authentication) directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
.ClientBuilder.setProxy
(com.okta.commons.http.config.Proxy proxy) Sets the HTTP proxy to be used when communicating with the Okta API server.ClientBuilder.setRetryMaxAttempts
(int maxAttempts) Sets the maximum number of attempts to retrying before giving up.ClientBuilder.setRetryMaxElapsed
(int maxElapsed) Sets the maximum number of seconds to wait when retrying before giving up.Allows specifying a list of scopes directly instead of relying on the default location + override/fallback behavior defined in thedocumentation above
. -
Uses of ClientBuilder in com.okta.sdk.impl.client
Modifier and TypeMethodDescriptionDefaultClientBuilder.setAuthorizationMode
(AuthorizationMode authorizationMode) DefaultClientBuilder.setCacheManager
(CacheManager cacheManager) DefaultClientBuilder.setClientCredentials
(ClientCredentials clientCredentials) DefaultClientBuilder.setClientId
(String clientId) DefaultClientBuilder.setConnectionTimeout
(int timeout) DefaultClientBuilder.setCustomJwtSigner
(UnaryOperator<byte[]> jwtSigner, String algorithm) DefaultClientBuilder.setOAuth2AccessToken
(String oAuth2AccessToken) DefaultClientBuilder.setPrivateKey
(InputStream privateKeyStream) DefaultClientBuilder.setPrivateKey
(String privateKey) DefaultClientBuilder.setPrivateKey
(Path privateKeyPath) DefaultClientBuilder.setPrivateKey
(PrivateKey privateKey) DefaultClientBuilder.setProxy
(com.okta.commons.http.config.Proxy proxy) DefaultClientBuilder.setRetryMaxAttempts
(int maxAttempts) DefaultClientBuilder.setRetryMaxElapsed
(int maxElapsed)