InteractiveBrowserBrokerCredentialBuilder Class
- java.
lang. Object - com.
azure. identity. CredentialBuilderBase<T> - com.
azure. identity. AadCredentialBuilderBase<T> - com.
azure. identity. InteractiveBrowserCredentialBuilder - com.
azure. identity. broker. InteractiveBrowserBrokerCredentialBuilder
- com.
- com.
- com.
- com.
public class InteractiveBrowserBrokerCredentialBuilder
extends InteractiveBrowserCredentialBuilder
Fluent credential builder for instantiating a InteractiveBrowserCredential configured to use a secure broker.
Sample: Construct a InteractiveBrowserCredential for brokered authentication
the following code sample shows to use this type:
InteractiveBrowserBrokerCredentialBuilder builder = new InteractiveBrowserBrokerCredentialBuilder();
InteractiveBrowserCredential credential = builder.build();
Constructor Summary
Constructor | Description | |
---|---|---|
InteractiveBrowserBrokerCredentialBuilder() |
Method Summary
Methods inherited from AadCredentialBuilderBase
Methods inherited from CredentialBuilderBase
Methods inherited from InteractiveBrowserCredentialBuilder
Methods inherited from java.lang.Object
Constructor Details
InteractiveBrowserBrokerCredentialBuilder
public InteractiveBrowserBrokerCredentialBuilder()
Method Details
addPolicy
public InteractiveBrowserBrokerCredentialBuilder addPolicy(HttpPipelinePolicy policy)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.addPolicy(HttpPipelinePolicy policy)Parameters:
additionallyAllowedTenants
public InteractiveBrowserBrokerCredentialBuilder additionallyAllowedTenants(String[] additionallyAllowedTenants)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.additionallyAllowedTenants(String[] additionallyAllowedTenants)Parameters:
additionallyAllowedTenants
public InteractiveBrowserBrokerCredentialBuilder additionallyAllowedTenants(List
Overrides:
InteractiveBrowserBrokerCredentialBuilder.additionallyAllowedTenants(List<String> additionallyAllowedTenants)Parameters:
authenticationRecord
public InteractiveBrowserBrokerCredentialBuilder authenticationRecord(AuthenticationRecord authenticationRecord)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.authenticationRecord(AuthenticationRecord authenticationRecord)Parameters:
authorityHost
public InteractiveBrowserBrokerCredentialBuilder authorityHost(String authorityHost)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.authorityHost(String authorityHost)Parameters:
browserCustomizationOptions
public InteractiveBrowserBrokerCredentialBuilder browserCustomizationOptions(BrowserCustomizationOptions browserCustomizationOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.browserCustomizationOptions(BrowserCustomizationOptions browserCustomizationOptions)Parameters:
clientId
public InteractiveBrowserBrokerCredentialBuilder clientId(String clientId)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.clientId(String clientId)Parameters:
clientOptions
public InteractiveBrowserBrokerCredentialBuilder clientOptions(ClientOptions clientOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.clientOptions(ClientOptions clientOptions)Parameters:
configuration
public InteractiveBrowserBrokerCredentialBuilder configuration(Configuration configuration)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.configuration(Configuration configuration)Parameters:
disableAutomaticAuthentication
public InteractiveBrowserBrokerCredentialBuilder disableAutomaticAuthentication()
Overrides:
InteractiveBrowserBrokerCredentialBuilder.disableAutomaticAuthentication()disableInstanceDiscovery
public InteractiveBrowserBrokerCredentialBuilder disableInstanceDiscovery()
Overrides:
InteractiveBrowserBrokerCredentialBuilder.disableInstanceDiscovery()enableAccountIdentifierLogging
public InteractiveBrowserBrokerCredentialBuilder enableAccountIdentifierLogging()
Overrides:
InteractiveBrowserBrokerCredentialBuilder.enableAccountIdentifierLogging()enableLegacyMsaPassthrough
public InteractiveBrowserBrokerCredentialBuilder enableLegacyMsaPassthrough()
Enables Microsoft Account (MSA) pass-through. This allows the user to sign in with a Microsoft Account (MSA) instead of a work or school account.
Returns:
enableUnsafeSupportLogging
public InteractiveBrowserBrokerCredentialBuilder enableUnsafeSupportLogging()
Overrides:
InteractiveBrowserBrokerCredentialBuilder.enableUnsafeSupportLogging()executorService
public InteractiveBrowserBrokerCredentialBuilder executorService(ExecutorService executorService)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.executorService(ExecutorService executorService)Parameters:
httpClient
public InteractiveBrowserBrokerCredentialBuilder httpClient(HttpClient client)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.httpClient(HttpClient client)Parameters:
httpLogOptions
public InteractiveBrowserBrokerCredentialBuilder httpLogOptions(HttpLogOptions logOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.httpLogOptions(HttpLogOptions logOptions)Parameters:
httpPipeline
public InteractiveBrowserBrokerCredentialBuilder httpPipeline(HttpPipeline httpPipeline)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.httpPipeline(HttpPipeline httpPipeline)Parameters:
loginHint
public InteractiveBrowserBrokerCredentialBuilder loginHint(String loginHint)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.loginHint(String loginHint)Parameters:
maxRetry
public InteractiveBrowserBrokerCredentialBuilder maxRetry(int maxRetry)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.maxRetry(int maxRetry)Parameters:
pipeline
public InteractiveBrowserBrokerCredentialBuilder pipeline(HttpPipeline pipeline)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.pipeline(HttpPipeline pipeline)Parameters:
port
public InteractiveBrowserBrokerCredentialBuilder port(int port)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.port(int port)Parameters:
proxyOptions
public InteractiveBrowserBrokerCredentialBuilder proxyOptions(ProxyOptions proxyOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.proxyOptions(ProxyOptions proxyOptions)Parameters:
redirectUrl
public InteractiveBrowserBrokerCredentialBuilder redirectUrl(String redirectUrl)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.redirectUrl(String redirectUrl)Parameters:
retryOptions
public InteractiveBrowserBrokerCredentialBuilder retryOptions(RetryOptions retryOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.retryOptions(RetryOptions retryOptions)Parameters:
retryPolicy
public InteractiveBrowserBrokerCredentialBuilder retryPolicy(RetryPolicy retryPolicy)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.retryPolicy(RetryPolicy retryPolicy)Parameters:
retryTimeout
public InteractiveBrowserBrokerCredentialBuilder retryTimeout(Function
Overrides:
InteractiveBrowserBrokerCredentialBuilder.retryTimeout(Function<Duration,Duration> retryTimeout)Parameters:
setWindowHandle
public InteractiveBrowserBrokerCredentialBuilder setWindowHandle(long windowHandle)
Sets the parent window handle used by the broker. For use on Windows only.
Parameters:
Returns:
tenantId
public InteractiveBrowserBrokerCredentialBuilder tenantId(String tenantId)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.tenantId(String tenantId)Parameters:
tokenCachePersistenceOptions
public InteractiveBrowserBrokerCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
Overrides:
InteractiveBrowserBrokerCredentialBuilder.tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)Parameters:
useDefaultBrokerAccount
public InteractiveBrowserCredentialBuilder useDefaultBrokerAccount()
Enables automatically using the default broker account for authentication instead of prompting the user with an account picker.
Returns:
Applies to
Azure SDK for Java