/** * Acquires security token from the authority using an authorization code * previously received. * * @param authorizationCode * The authorization code received from service authorization * endpoint. * @param redirectUri * The redirect address used for obtaining authorization code. * @param credential * The client credential to use for token acquisition. * @param callback * optional callback object for non-blocking execution. * @return A {@link Future} object representing the * {@link AuthenticationResult} of the call. It contains Access * Token, Refresh Token and the Access Token's expiration time. */ public Future<AuthenticationResult> acquireTokenByAuthorizationCode( final String authorizationCode, final URI redirectUri, final ClientCredential credential, final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, null); return this.acquireTokenByAuthorizationCode(authorizationCode, redirectUri, credential, null, callback); }
/** * Acquires security token from the authority using an authorization code * previously received. * * @param authorizationCode * The authorization code received from service authorization * endpoint. * @param redirectUri * The redirect address used for obtaining authorization code. * @param credential * The client credential to use for token acquisition. * @param callback * optional callback object for non-blocking execution. * @return A {@link Future} object representing the * {@link AuthenticationResult} of the call. It contains Access * Token, Refresh Token and the Access Token's expiration time. */ public Future<AuthenticationResult> acquireTokenByAuthorizationCode( final String authorizationCode, final URI redirectUri, final ClientCredential credential, final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, null); return this.acquireTokenByAuthorizationCode(authorizationCode, redirectUri, credential, null, callback); }
/** * Acquires security token from the authority using an authorization code * previously received. * * @param authorizationCode * The authorization code received from service authorization * endpoint. * @param redirectUri * The redirect address used for obtaining authorization code. * @param credential * The client credential to use for token acquisition. * @param callback * optional callback object for non-blocking execution. * @return A {@link Future} object representing the * {@link AuthenticationResult} of the call. It contains Access * Token, Refresh Token and the Access Token's expiration time. */ public Future<AuthenticationResult> acquireTokenByAuthorizationCode( final String authorizationCode, final URI redirectUri, final ClientCredential credential, final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, null); return this.acquireTokenByAuthorizationCode(authorizationCode, redirectUri, credential, null, callback); }
final AuthenticationCallback callback) throws AuthenticationException { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); return this.acquireTokenByAuthorizationCode(authorizationCode,
final AuthenticationCallback callback) throws AuthenticationException { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); return this.acquireTokenByAuthorizationCode(authorizationCode,
final AuthenticationCallback callback) throws AuthenticationException { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); return this.acquireTokenByAuthorizationCode(authorizationCode,
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, clientAssertion, resource); final ClientAuthentication clientAuth = createClientAuthFromClientAssertion(clientAssertion);
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); final ClientAuthentication clientAuth = createClientAuthFromClientAssertion(credential);
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, clientAssertion, resource); final ClientAuthentication clientAuth = createClientAuthFromClientAssertion(clientAssertion);
ClientAuthenticationMethod.NONE, new ClientID(clientId)); this.validateAuthCodeRequestInput(authorizationCode, redirectUri, clientAuth, resource); final AdalOAuthAuthorizationGrant authGrant = new AdalOAuthAuthorizationGrant(
ClientAuthenticationMethod.NONE, new ClientID(clientId)); this.validateAuthCodeRequestInput(authorizationCode, redirectUri, clientAuth, resource); final AdalOAuthAuthorizationGrant authGrant = new AdalOAuthAuthorizationGrant(
ClientAuthenticationMethod.NONE, new ClientID(clientId)); this.validateAuthCodeRequestInput(authorizationCode, redirectUri, clientAuth, resource); final AdalAuthorizatonGrant authGrant = new AdalAuthorizatonGrant(
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); final ClientAuthentication clientAuth = new ClientSecretPost(
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); final ClientAuthentication clientAuth = new ClientSecretPost(
final AuthenticationCallback callback) { this.validateAuthCodeRequestInput(authorizationCode, redirectUri, credential, resource); final ClientAuthentication clientAuth = new ClientSecretPost(