MicrosoftGovernmentAppCredentials Class

public class MicrosoftGovernmentAppCredentials
extends MicrosoftAppCredentials

MicrosoftGovernmentAppCredentials auth implementation.

Constructor Summary

Constructor Description
MicrosoftGovernmentAppCredentials(String appId, String password)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

MicrosoftGovernmentAppCredentials(String appId, String password, String oAuthScope)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

MicrosoftGovernmentAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

Method Summary

Modifier and Type Method and Description
static MicrosoftGovernmentAppCredentials empty()

An empty set of credentials.

java.lang.String oAuthEndpoint()

Gets the Gov OAuth endpoint to use.

Methods inherited from AppCredentials

Methods inherited from MicrosoftAppCredentials

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

MicrosoftGovernmentAppCredentials

public MicrosoftGovernmentAppCredentials(String appId, String password)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

Parameters:

appId - The Microsoft app ID.
password - The Microsoft app password.

MicrosoftGovernmentAppCredentials

public MicrosoftGovernmentAppCredentials(String appId, String password, String oAuthScope)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

Parameters:

appId - The Microsoft app ID.
password - The Microsoft app password.
oAuthScope - The scope for the token.

MicrosoftGovernmentAppCredentials

public MicrosoftGovernmentAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)

Initializes a new instance of the MicrosoftGovernmentAppCredentials class.

Parameters:

withAppId - The Microsoft app ID.
withAppPassword - The Microsoft app password.
withChannelAuthTenant - Optional. The oauth token tenant.
withOAuthScope - The scope for the token.

Method Details

empty

public static MicrosoftGovernmentAppCredentials empty()

An empty set of credentials.

Returns:

An empty Gov credentials.

oAuthEndpoint

public String oAuthEndpoint()

Gets the Gov OAuth endpoint to use.

Overrides:

MicrosoftGovernmentAppCredentials.oAuthEndpoint()

Returns:

The OAuth endpoint to use.

Applies to