public final class

ADALConnectionDetails

extends Object
implements Parcelable
java.lang.Object
   ↳ com.microsoft.intune.mam.client.app.startup.ADALConnectionDetails

Class Overview

Allows configuring setting used for authentication policy at runtime, rather than in the AndroidManifest, via registerADALConnectionDetails(String, ADALConnectionDetails).

Summary

Constants
String DEFAULT_AUTHORITY Default authority.
String DEFAULT_CLIENT_ID Default client ID.
String DEFAULT_NON_BROKER_REDIRECT_URI Redirect URI to use with AAD without the broker enabled.
boolean DEFAULT_SKIP_BROKER_APP_ADAL Default value for if the broker should be skipped.
boolean DEFAULT_SKIP_BROKER_NO_APP_ADAL Default value for if the broker should be skipped if the app itself doesn't use ADAL.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ADALConnectionDetails> CREATOR Parcelable creator.
Public Constructors
ADALConnectionDetails(String authority, String clientId, String nonBrokerRedirectUri, boolean skipBroker)
Constructor.
Public Methods
int describeContents()
boolean equals(Object obj)
static ADALConnectionDetails fromJSON(String json)
Parse from JSON representation previously generated by toJSON.
String getAuthority()
Get the authority.
String getClientId()
Get the client ID.
String getNonBrokerRedirectUri()
Get the non-broker redirect URI.
boolean getSkipBroker()
Get whether the broker should be skipped.
int hashCode()
String toJSON()
String toString()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final String DEFAULT_AUTHORITY

Default authority.

Constant Value: "https://login.windows.net/common/"

public static final String DEFAULT_CLIENT_ID

Default client ID.

Constant Value: "6c7e8096-f593-4d72-807f-a5f86dcc9c77"

public static final String DEFAULT_NON_BROKER_REDIRECT_URI

Redirect URI to use with AAD without the broker enabled.

Constant Value: "urn:ietf:wg:oauth:2.0:oob"

public static final boolean DEFAULT_SKIP_BROKER_APP_ADAL

Default value for if the broker should be skipped.

Constant Value: false

public static final boolean DEFAULT_SKIP_BROKER_NO_APP_ADAL

Default value for if the broker should be skipped if the app itself doesn't use ADAL.

Constant Value: true

Fields

public static final Creator<ADALConnectionDetails> CREATOR

Parcelable creator.

Public Constructors

public ADALConnectionDetails (String authority, String clientId, String nonBrokerRedirectUri, boolean skipBroker)

Constructor.

Parameters
authority Authority.
clientId Client ID.
nonBrokerRedirectUri Redirect URI for non-broker requests. Use DEFAULT_NON_BROKER_REDIRECT_URI for the default value.
skipBroker Skip the broker. Use DEFAULT_SKIP_BROKER_APP_ADAL for the default value.

Public Methods

public int describeContents ()

public boolean equals (Object obj)

public static ADALConnectionDetails fromJSON (String json)

Parse from JSON representation previously generated by toJSON.

Parameters
json json representation
Returns
  • ADAL connection details

public String getAuthority ()

Get the authority.

Returns
  • The authority.

public String getClientId ()

Get the client ID.

Returns
  • The client ID.

public String getNonBrokerRedirectUri ()

Get the non-broker redirect URI.

Returns
  • The non-broker redirect URI.

public boolean getSkipBroker ()

Get whether the broker should be skipped.

Returns
  • True if the broker should be skipped; false otherwise.

public int hashCode ()

public String toJSON ()

Returns
  • JSON representation of the object

public String toString ()

public void writeToParcel (Parcel parcel, int flags)