|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.aad.adal.AuthenticationParameters
public class AuthenticationParameters
Matching to ADAL.NET It provides helper methods to get the authorization_endpoint from resource address.
Nested Class Summary | |
---|---|
static interface |
AuthenticationParameters.AuthenticationParamCallback
Callback to use for async request. |
Field Summary | |
---|---|
static String |
AUTH_HEADER_INVALID_FORMAT
Invalid authentication header format. |
static String |
AUTH_HEADER_MISSING
WWW-Authenticate header was expected in the response. |
static String |
AUTH_HEADER_MISSING_AUTHORITY
WWW-Authenticate header is missing authorization_uri. |
static String |
AUTH_HEADER_WRONG_STATUS
Unauthorized http response (status code 401) was expected. |
static String |
AUTHENTICATE_HEADER
Constant Authenticate header: WWW-Authenticate. |
static String |
AUTHORITY_KEY
Constant Authority key. |
static String |
BEARER
Constant Bearer. |
static String |
RESOURCE_KEY
Constant Resource key. |
Constructor Summary | |
---|---|
AuthenticationParameters()
Creates AuthenticationParameters. |
Method Summary | |
---|---|
static void |
createFromResourceUrl(android.content.Context context,
URL resourceUrl,
AuthenticationParameters.AuthenticationParamCallback callback)
ADAL will make the call to get authority and resource info. |
static AuthenticationParameters |
createFromResponseAuthenticateHeader(String authenticateHeader)
ADAL will parse the header response to get the authority and the resource info. |
String |
getAuthority()
get authority from the header. |
String |
getResource()
get resource from the header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AUTH_HEADER_MISSING_AUTHORITY
public static final String AUTH_HEADER_INVALID_FORMAT
public static final String AUTH_HEADER_MISSING
public static final String AUTH_HEADER_WRONG_STATUS
public static final String AUTHENTICATE_HEADER
public static final String BEARER
public static final String AUTHORITY_KEY
public static final String RESOURCE_KEY
Constructor Detail |
---|
public AuthenticationParameters()
Method Detail |
---|
public String getAuthority()
public String getResource()
public static void createFromResourceUrl(android.content.Context context, URL resourceUrl, AuthenticationParameters.AuthenticationParamCallback callback)
context
- Context
resourceUrl
- Url for resource to query for 401 response.callback
- AuthenticationParameters.AuthenticationParamCallback
public static AuthenticationParameters createFromResponseAuthenticateHeader(String authenticateHeader)
authenticateHeader
- Header to check authority and resource.
AuthenticationParameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |