Class UsernamePasswordProvider
java.lang.Object
com.microsoft.graph.auth.BaseAuthentication
com.microsoft.graph.auth.publicClient.UsernamePasswordProvider
- All Implemented Interfaces:
com.microsoft.graph.authentication.IAuthenticationProvider,com.microsoft.graph.httpcore.ICoreAuthenticationProvider
public class UsernamePasswordProvider extends BaseAuthentication implements com.microsoft.graph.authentication.IAuthenticationProvider, com.microsoft.graph.httpcore.ICoreAuthenticationProvider
-
Field Summary
Fields inherited from class com.microsoft.graph.auth.BaseAuthentication
CloudList -
Constructor Summary
Constructors Constructor Description UsernamePasswordProvider(java.lang.String clientId, java.util.List<java.lang.String> scopes, java.lang.String username, java.lang.String password)UsernamePasswordProvider(java.lang.String clientId, java.util.List<java.lang.String> scopes, java.lang.String username, java.lang.String password, NationalCloud nationalCloud, java.lang.String tenant, java.lang.String clientSecret) -
Method Summary
Modifier and Type Method Description voidauthenticateRequest(com.microsoft.graph.http.IHttpRequest request)okhttp3.RequestauthenticateRequest(okhttp3.Request request)Methods inherited from class com.microsoft.graph.auth.BaseAuthentication
getAccessTokenSilent, getAuthority, GetAuthority, getClientId, getClientSecret, getNationalCloud, getRedirectUri, getResponse, getScopesAsString, getStartTime, getTenant, setResponse, setStartTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UsernamePasswordProvider
public UsernamePasswordProvider(java.lang.String clientId, java.util.List<java.lang.String> scopes, java.lang.String username, java.lang.String password) -
UsernamePasswordProvider
public UsernamePasswordProvider(java.lang.String clientId, java.util.List<java.lang.String> scopes, java.lang.String username, java.lang.String password, NationalCloud nationalCloud, java.lang.String tenant, java.lang.String clientSecret)
-
-
Method Details
-
authenticateRequest
public okhttp3.Request authenticateRequest(okhttp3.Request request)- Specified by:
authenticateRequestin interfacecom.microsoft.graph.httpcore.ICoreAuthenticationProvider
-
authenticateRequest
public void authenticateRequest(com.microsoft.graph.http.IHttpRequest request)- Specified by:
authenticateRequestin interfacecom.microsoft.graph.authentication.IAuthenticationProvider
-