public class OAuthEndpoints extends Object
Constructor and Description |
---|
OAuthEndpoints() |
Modifier and Type | Method and Description |
---|---|
Object |
authorizationCodeGrantToken() |
Map<String,Object> |
authorize(String grantTypeString,
String fullClientId,
String redirectUri,
String scopesString,
String state) |
void |
authorizeToRedirect(String fullClientId,
String redirectUri,
String scopesString,
String state) |
void |
authorizeToRedirectHash(String fullClientId,
String redirectUri,
String scopesString,
String state) |
Object |
authScreen(String clientFullId,
String scopesString) |
Object |
grantToken(String grantType) |
Object |
passwordGrantToken() |
Object |
refresh(String accessToken,
String refreshToken,
String fullClientId,
String clientSecret) |
public OAuthEndpoints()
@GET @Path(value="/auth") @Produces(value="text/html") public Object authScreen(@QueryParam(value="client_id") String clientFullId, @QueryParam(value="scopes") String scopesString)
@POST @Path(value="/authorize-and-redirect") @Consumes(value="application/x-www-form-urlencoded") public void authorizeToRedirect(String fullClientId, String redirectUri, String scopesString, String state)
@POST @Path(value="/authorize-and-redirect-to-hash") @Consumes(value="application/x-www-form-urlencoded") public void authorizeToRedirectHash(String fullClientId, String redirectUri, String scopesString, String state)
@POST @Path(value="/authorize-to-json") public Map<String,Object> authorize(String grantTypeString, String fullClientId, String redirectUri, String scopesString, String state)
@POST @Path(value="/refresh") public Object refresh(String accessToken, String refreshToken, String fullClientId, String clientSecret)
@POST @Path(value="/token") public Object grantToken(String grantType)
public Object authorizationCodeGrantToken()
public Object passwordGrantToken()
Copyright © 2016. All rights reserved.