@Test public void testAccessTokenVerb_unknownValue() throws Exception { Map<String, Object> options = new HashMap<String, Object>(); String requestMethod = "BREW"; options.put(GroupProviderOptionParameters.REQUEST_METHOD, requestMethod); ThreeLeggedOauth10aGroupProviderApi api = new ThreeLeggedOauth10aGroupProviderApi(groupProvider); assertEquals(Verb.POST, api.getAccessTokenVerb()); }
@Override public Verb getAccessTokenVerb() { String method = groupProvider.getAllowedOptionAsString(REQUEST_METHOD); if (Verb.GET.toString().equalsIgnoreCase(method)) { return Verb.GET; } return Verb.POST; }
ThreeLeggedOauth10aGroupProviderApi extends DefaultApi10a { @Override public Verb getAccessTokenVerb() { String method = groupProvider.getAllowedOptionAsString(REQUEST_METHOD); if (Verb.GET.toString().equalsIgnoreCase(method)) { return Verb.GET; } return Verb.POST; } }
ThreeLeggedOauth10aGroupProviderApi extends DefaultApi10a { @Override public Verb getAccessTokenVerb() { String method = groupProvider.getAllowedOptionAsString(REQUEST_METHOD); if (Verb.GET.toString().equalsIgnoreCase(method)) { return Verb.GET; } return Verb.POST; } ThreeLeggedOauth10aGroupProviderApi(GroupProvider groupProvider); }
ThreeLeggedOauth10aGroupProviderApi extends DefaultApi10a { @Override public Verb getAccessTokenVerb() { String method = groupProvider.getAllowedOptionAsString(REQUEST_METHOD); if (Verb.GET.toString().equalsIgnoreCase(method)) { return Verb.GET; } return Verb.POST; } ThreeLeggedOauth10aGroupProviderApi(GroupProvider groupProvider); @Override Verb getAccessTokenVerb(); @Override Verb getRequestTokenVerb(); @Override String getRequestTokenEndpoint(); @Override String getAccessTokenEndpoint(); @Override String getAuthorizationUrl(Token requestToken); }
ThreeLeggedOauth10aGroupProviderApi extends DefaultApi10a { @Override public Verb getAccessTokenVerb() { String method = groupProvider.getAllowedOptionAsString(REQUEST_METHOD); if (Verb.GET.toString().equalsIgnoreCase(method)) { return Verb.GET; } return Verb.POST; } ThreeLeggedOauth10aGroupProviderApi(GroupProvider groupProvider); @Override Verb getAccessTokenVerb(); @Override Verb getRequestTokenVerb(); @Override String getRequestTokenEndpoint(); @Override String getAccessTokenEndpoint(); @Override String getAuthorizationUrl(Token requestToken);  }