public class CommandParametersAdapter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLIENT_CAPABILITIES_CLAIM |
| Constructor and Description |
|---|
CommandParametersAdapter() |
| Modifier and Type | Method and Description |
|---|---|
static ClaimsRequest |
addClientCapabilitiesToClaimsRequest(ClaimsRequest cr,
java.lang.String clientCapabilities) |
static CommandParameters |
createCommandParameters(PublicClientApplicationConfiguration configuration,
OAuth2TokenCache tokenCache) |
static DeviceCodeFlowCommandParameters |
createDeviceCodeFlowCommandParameters(PublicClientApplicationConfiguration configuration,
OAuth2TokenCache tokenCache,
java.lang.String[] scopes) |
static GenerateShrCommandParameters |
createGenerateShrCommandParameters(PublicClientApplicationConfiguration clientConfig,
OAuth2TokenCache oAuth2TokenCache,
java.lang.String homeAccountId,
PoPAuthenticationScheme popParameters)
Constructs the
GenerateShrCommandParameters for the supplied args. |
static InteractiveTokenCommandParameters |
createInteractiveTokenCommandParameters(PublicClientApplicationConfiguration configuration,
OAuth2TokenCache tokenCache,
AcquireTokenParameters parameters) |
static RemoveAccountCommandParameters |
createRemoveAccountCommandParameters(PublicClientApplicationConfiguration configuration,
OAuth2TokenCache tokenCache,
AccountRecord account) |
static SilentTokenCommandParameters |
createSilentTokenCommandParameters(PublicClientApplicationConfiguration configuration,
OAuth2TokenCache tokenCache,
AcquireTokenSilentParameters parameters) |
public static final java.lang.String CLIENT_CAPABILITIES_CLAIM
public static CommandParameters createCommandParameters(PublicClientApplicationConfiguration configuration, OAuth2TokenCache tokenCache)
public static RemoveAccountCommandParameters createRemoveAccountCommandParameters(PublicClientApplicationConfiguration configuration, OAuth2TokenCache tokenCache, AccountRecord account)
public static InteractiveTokenCommandParameters createInteractiveTokenCommandParameters(PublicClientApplicationConfiguration configuration, OAuth2TokenCache tokenCache, AcquireTokenParameters parameters)
public static SilentTokenCommandParameters createSilentTokenCommandParameters(PublicClientApplicationConfiguration configuration, OAuth2TokenCache tokenCache, AcquireTokenSilentParameters parameters)
public static DeviceCodeFlowCommandParameters createDeviceCodeFlowCommandParameters(PublicClientApplicationConfiguration configuration, OAuth2TokenCache tokenCache, java.lang.String[] scopes)
public static ClaimsRequest addClientCapabilitiesToClaimsRequest(ClaimsRequest cr, java.lang.String clientCapabilities)
public static GenerateShrCommandParameters createGenerateShrCommandParameters(PublicClientApplicationConfiguration clientConfig, OAuth2TokenCache oAuth2TokenCache, java.lang.String homeAccountId, PoPAuthenticationScheme popParameters)
GenerateShrCommandParameters for the supplied args.clientConfig - The configuration of our current app.oAuth2TokenCache - Our local token cache.homeAccountId - The home_account_id of the user for whom we're signing.popParameters - The pop params to embed in the resulting SHR.