PublicClientApplicationConfiguration Class
- java.
lang. Object - com.
microsoft. identity. client. PublicClientApplicationConfiguration
- com.
public class PublicClientApplicationConfiguration
Field Summary
Modifier and Type | Field and Description |
---|---|
final String | INVALID_REDIRECT_MSG |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean | authorizationInCurrentTask() |
void | checkIntentFilterAddedToAppManifestForBrokerFlow() |
Account |
getAccountMode()
Gets the currently configured AccountMode for the PublicClientApplication. |
Context | getAppContext() |
List<Authority> |
getAuthorities()
Gets the list of authorities configured by the developer for use with the PublicClientApplication. |
AuthorizationAgent |
getAuthorizationAgent()
Gets the currently configured AuthorizationAgent for the PublicClientApplication. |
List<BrowserDescriptor> |
getBrowserSafeList()
Gets the list of browser safe list. |
String |
getClientCapabilities()
Gets the currently configured capabilities for the PublicClientApplication. |
String |
getClientId()
Gets the currently configured client id for the PublicClientApplication. |
Authority | getDefaultAuthority() |
Environment |
getEnvironment()
Gets the environment (Production, PPE) that the public client application is registered in |
Http |
getHttpConfiguration()
Gets the currently configured HttpConfiguration for the PublicClientApplication. |
boolean | getIsSharedDevice() |
Logger |
getLoggerConfiguration()
Gets the currently configured LoggerConfiguration for the PublicClientApplication. |
Boolean |
getMultipleCloudsSupported()
Indicates whether the PublicClientApplication supports multiple clouds. Automatic redirection to the cloud associated with the authenticated user |
String |
getRedirectUri()
Gets the currently configured redirect uri for the PublicClientApplication. |
String |
getRequiredBrokerProtocolVersion()
Indicates the minimum required broker protocol version number. |
TelemetryConfiguration |
getTelemetryConfiguration()
Gets the currently configured TelemetryConfiguration for the PublicClientApplication. |
Boolean |
getUseBroker()
Indicates whether the PublicClientApplication would like to leverage the broker if available. The client must have registered |
boolean | isBrokerRedirectUri(final @NonNull String redirectUri, final @NonNull String packageName) |
boolean | isDefaultAuthorityConfigured() |
Boolean | isPowerOptCheckForEnabled() |
boolean | isWebViewZoomControlsEnabled() |
boolean | isWebViewZoomEnabled() |
void |
setClientId(final String clientId)
Sets the configured client id for the PublicClientApplication. @param The configured clientId. |
void | setPowerOptCheckEnabled(Boolean powerOptCheckEnabled) |
void |
setRedirectUri(@NonNull final String redirectUri)
Sets the configured redirect uri for the PublicClientApplication. |
void |
setTokenCacheSecretKeys(@NonNull final byte[] rawKey)
Sets the secret key bytes to use when encrypting/decrypting cache entries. java.security.spec.KeySpec algorithm is AES. |
void | setWebViewZoomControlsEnabled(boolean webViewZoomControlsEnabled) |
void | setWebViewZoomEnabled(boolean webViewZoomEnabled) |
Field Details
INVALID_REDIRECT_MSG
public static final String INVALID_REDIRECT_MSG= "Invalid, null, or malformed redirect_uri supplied"
Method Details
authorizationInCurrentTask
public Boolean authorizationInCurrentTask()
checkIntentFilterAddedToAppManifestForBrokerFlow
public void checkIntentFilterAddedToAppManifestForBrokerFlow()
getAccountMode
public AccountMode getAccountMode()
Gets the currently configured AccountMode for the PublicClientApplication.
Returns:
getAppContext
public Context getAppContext()
getAuthorities
public List
Gets the list of authorities configured by the developer for use with the PublicClientApplication.
Returns:
getAuthorizationAgent
public AuthorizationAgent getAuthorizationAgent()
Gets the currently configured AuthorizationAgent for the PublicClientApplication.
Returns:
getBrowserSafeList
public List
Gets the list of browser safe list.
Returns:
getClientCapabilities
public String getClientCapabilities()
Gets the currently configured capabilities for the PublicClientApplication.
Returns:
getClientId
public String getClientId()
Gets the currently configured client id for the PublicClientApplication.
Returns:
getDefaultAuthority
public Authority getDefaultAuthority()
getEnvironment
public Environment getEnvironment()
Gets the environment (Production, PPE) that the public client application is registered in
Returns:
getHttpConfiguration
public HttpConfiguration getHttpConfiguration()
Gets the currently configured HttpConfiguration for the PublicClientApplication.
Returns:
getIsSharedDevice
public boolean getIsSharedDevice()
getLoggerConfiguration
public LoggerConfiguration getLoggerConfiguration()
Gets the currently configured LoggerConfiguration for the PublicClientApplication.
Returns:
getMultipleCloudsSupported
public Boolean getMultipleCloudsSupported()
Indicates whether the PublicClientApplication supports multiple clouds. Automatic redirection to the cloud associated with the authenticated user
Returns:
getRedirectUri
public String getRedirectUri()
Gets the currently configured redirect uri for the PublicClientApplication.
Returns:
getRequiredBrokerProtocolVersion
public String getRequiredBrokerProtocolVersion()
Indicates the minimum required broker protocol version number.
Returns:
getTelemetryConfiguration
public TelemetryConfiguration getTelemetryConfiguration()
Gets the currently configured TelemetryConfiguration for the PublicClientApplication.
Returns:
getUseBroker
public Boolean getUseBroker()
Indicates whether the PublicClientApplication would like to leverage the broker if available.
The client must have registered
Returns:
isBrokerRedirectUri
public static boolean isBrokerRedirectUri(final @NonNull String redirectUri, final @NonNull String packageName)
Parameters:
isDefaultAuthorityConfigured
public boolean isDefaultAuthorityConfigured()
isPowerOptCheckForEnabled
public Boolean isPowerOptCheckForEnabled()
isWebViewZoomControlsEnabled
public boolean isWebViewZoomControlsEnabled()
isWebViewZoomEnabled
public boolean isWebViewZoomEnabled()
setClientId
public void setClientId(final String clientId)
Sets the configured client id for the PublicClientApplication.
@param The configured clientId.
Parameters:
setPowerOptCheckEnabled
public void setPowerOptCheckEnabled(Boolean powerOptCheckEnabled)
Parameters:
setRedirectUri
public void setRedirectUri(@NonNull final String redirectUri)
Sets the configured redirect uri for the PublicClientApplication.
Parameters:
setTokenCacheSecretKeys
public void setTokenCacheSecretKeys(@NonNull final byte[] rawKey)
Sets the secret key bytes to use when encrypting/decrypting cache entries. java.security.spec.KeySpec algorithm is AES.
Parameters:
setWebViewZoomControlsEnabled
public void setWebViewZoomControlsEnabled(boolean webViewZoomControlsEnabled)
Parameters:
setWebViewZoomEnabled
public void setWebViewZoomEnabled(boolean webViewZoomEnabled)
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for