Package com.microsoft.graph.auth
Class BaseAuthentication
java.lang.Object
com.microsoft.graph.auth.BaseAuthentication
- Direct Known Subclasses:
AuthorizationCodeProvider,ClientCredentialProvider,UsernamePasswordProvider
public class BaseAuthentication
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.HashMap<java.lang.String,java.lang.String>CloudList -
Constructor Summary
Constructors Constructor Description BaseAuthentication(java.util.List<java.lang.String> scopes, java.lang.String clientId, java.lang.String authority, java.lang.String redirectUri, NationalCloud nationalCloud, java.lang.String tenant, java.lang.String clientSecret) -
Method Summary
Modifier and Type Method Description protected java.lang.StringgetAccessTokenSilent()protected java.lang.StringgetAuthority()protected static java.lang.StringGetAuthority(NationalCloud authorityEndpoint, java.lang.String tenant)protected java.lang.StringgetClientId()protected java.lang.StringgetClientSecret()protected NationalCloudgetNationalCloud()protected java.lang.StringgetRedirectUri()protected org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponsegetResponse()protected java.lang.StringgetScopesAsString()protected longgetStartTime()protected java.lang.StringgetTenant()protected voidsetResponse(org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse response)protected voidsetStartTime(long startTime)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CloudList
protected static java.util.HashMap<java.lang.String,java.lang.String> CloudList
-
-
Constructor Details
-
BaseAuthentication
public BaseAuthentication(java.util.List<java.lang.String> scopes, java.lang.String clientId, java.lang.String authority, java.lang.String redirectUri, NationalCloud nationalCloud, java.lang.String tenant, java.lang.String clientSecret)
-
-
Method Details
-
GetAuthority
protected static java.lang.String GetAuthority(NationalCloud authorityEndpoint, java.lang.String tenant) -
getScopesAsString
protected java.lang.String getScopesAsString() -
getAccessTokenSilent
protected java.lang.String getAccessTokenSilent() -
getAuthority
protected java.lang.String getAuthority() -
getClientId
protected java.lang.String getClientId() -
getClientSecret
protected java.lang.String getClientSecret() -
getRedirectUri
protected java.lang.String getRedirectUri() -
setResponse
protected void setResponse(org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse response) -
getResponse
protected org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse getResponse() -
getStartTime
protected long getStartTime() -
setStartTime
protected void setStartTime(long startTime) -
getNationalCloud
-
getTenant
protected java.lang.String getTenant()
-