@Override protected boolean executeRefreshToken() throws IOException { JsonToken jwt = SignedTokenGenerator.createJsonTokenForScopes(scope, audience); String assertion; try { assertion = jwt.serializeAndSign(); } catch (SignatureException exception) { IOException rewrite = new IOException("Unable to sign JSON Web Token"); rewrite.initCause(exception); throw rewrite; } AssertionGrant tokenRequest = new AssertionGrant( transport, jsonFactory, authorizationServerUrl, ASSERTION_TYPE, assertion); return executeAccessTokenRequest(tokenRequest); } }
@Override protected boolean executeRefreshToken() throws IOException { JsonToken jwt = SignedTokenGenerator.createJsonTokenForScopes(scope, audience); String assertion; try { assertion = jwt.serializeAndSign(); } catch (SignatureException exception) { IOException rewrite = new IOException("Unable to sign JSON Web Token"); rewrite.initCause(exception); throw rewrite; } AssertionGrant tokenRequest = new AssertionGrant( transport, jsonFactory, authorizationServerUrl, ASSERTION_TYPE, assertion); return executeAccessTokenRequest(tokenRequest); } }