File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
src/main/java/com/microsoft/aad/msal4j Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,8 @@ public CompletableFuture<IAuthenticationResult> acquireToken(AuthorizationCodePa
103103 return this .executeRequest (authorizationCodeRequest );
104104 }
105105
106- /**
107- * Acquires a security token from the authority using a Refresh Token
108- * previously received.
109- *
110- * @param parameters#refreshToken Refresh Token to use in the refresh flow.
111- * @param parameters#scopes scopes of the access request
112- * @return A {@link CompletableFuture} object representing the
113- * {@link IAuthenticationResult} of the call. It contains Access
114- * Token, Refresh Token and the Access Token's expiration time.
115- */
116- CompletableFuture <IAuthenticationResult > acquireToken (RefreshTokenParameters parameters ) {
106+ @ Override
107+ public CompletableFuture <IAuthenticationResult > acquireToken (RefreshTokenParameters parameters ) {
117108
118109 validateNotNull ("parameters" , parameters );
119110
Original file line number Diff line number Diff line change @@ -92,6 +92,18 @@ public interface IClientApplicationBase {
9292 */
9393 CompletableFuture <IAuthenticationResult > acquireToken (AuthorizationCodeParameters parameters );
9494
95+ /**
96+ * Acquires a security token from the authority using a Refresh Token previously received.
97+ * Can be used in migration to MSAL from ADAL v2, and in various integration
98+ * scenarios where you have a RefreshToken available.
99+ * See https://aka.ms/msal-net-migration-adal2-msal2.
100+ *
101+ * @param parameters#refreshToken Refresh Token to use in the refresh flow.
102+ * @param parameters#scopes scopes of the access request
103+ * @return A {@link CompletableFuture} object representing the {@link IAuthenticationResult} of the call.
104+ */
105+ CompletableFuture <IAuthenticationResult > acquireToken (RefreshTokenParameters parameters );
106+
95107 /**
96108 * Returning tokens from cache or requesting new one using previously cached refresh tokens
97109 *
You can’t perform that action at this time.
0 commit comments