Class OAuth2Service
- java.lang.Object
-
- io.prestosql.server.security.oauth2.OAuth2Service
-
public class OAuth2Service extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuth2Service.OAuthResult
-
Constructor Summary
Constructors Constructor Description OAuth2Service(OAuth2Client client, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, OAuth2Config oauth2Config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2Service.OAuthResultfinishChallenge(String state, String code, URI callbackUri)StringgetCallbackErrorHtml(String errorCode)StringgetInternalFailureHtml(String errorMessage)io.jsonwebtoken.Jws<io.jsonwebtoken.Claims>parseClaimsJws(String token)URIstartChallenge(URI callbackUri)
-
-
-
Constructor Detail
-
OAuth2Service
@Inject public OAuth2Service(OAuth2Client client, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, OAuth2Config oauth2Config) throws IOException
- Throws:
IOException
-
-
Method Detail
-
finishChallenge
public OAuth2Service.OAuthResult finishChallenge(String state, String code, URI callbackUri) throws ChallengeFailedException
- Throws:
ChallengeFailedException
-
parseClaimsJws
public io.jsonwebtoken.Jws<io.jsonwebtoken.Claims> parseClaimsJws(String token)
-
-