@Override public AuthenticationResult call() throws Exception { AuthenticationResult result = null; try { this.authGrant = processPasswordGrant(this.authGrant); result = acquireTokenCommon(this.authGrant, this.clientAuth, this.headers); logResult(result, headers); if (callback != null) { callback.onSuccess(result); } } catch (final Exception ex) { log.error(LogHelper.createMessage( "Request to acquire token failed.", this.headers.getHeaderCorrelationIdValue()), ex); if (callback != null) { callback.onFailure(ex); } else { throw ex; } } return result; }
@Override public T call() throws Exception { T result = null; try { result = execute(); logResult(result, headers); if (callback != null) { callback.onSuccess(result); } } catch (final Exception ex) { context.log.error(LogHelper.createMessage("Execution of " + this.getClass() + " failed.", this.headers.getHeaderCorrelationIdValue()), ex); if (callback != null) { callback.onFailure(ex); } else { throw ex; } } return result; } }
@Override public T call() throws Exception { T result = null; try { result = execute(); logResult(result, headers); if (callback != null) { callback.onSuccess(result); } } catch (final Exception ex) { context.log.error(LogHelper.createMessage("Execution of " + this.getClass() + " failed.", this.headers.getHeaderCorrelationIdValue()), ex); if (callback != null) { callback.onFailure(ex); } else { throw ex; } } return result; } }