Package io.jans.as.server.token.ws.rs
Class TokenRestWebServiceImpl
- java.lang.Object
-
- io.jans.as.server.token.ws.rs.TokenRestWebServiceImpl
-
- All Implemented Interfaces:
TokenRestWebService
@Path("/") public class TokenRestWebServiceImpl extends java.lang.Object implements TokenRestWebService
Provides interface for token REST web services- Version:
- October 5, 2021
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description TokenRestWebServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getJSonResponse(AccessToken accessToken, io.jans.as.model.common.TokenType tokenType, java.lang.Integer expiresIn, RefreshToken refreshToken, java.lang.String scope, IdToken idToken)
Builds a JSon String with the structure for token issues.jakarta.ws.rs.core.Response
requestAccessToken(java.lang.String grantType, java.lang.String code, java.lang.String redirectUri, java.lang.String username, java.lang.String password, java.lang.String scope, java.lang.String assertion, java.lang.String refreshToken, java.lang.String clientId, java.lang.String clientSecret, java.lang.String codeVerifier, java.lang.String ticket, java.lang.String claimToken, java.lang.String claimTokenFormat, java.lang.String pctCode, java.lang.String rptCode, java.lang.String authReqId, java.lang.String deviceCode, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.ws.rs.core.SecurityContext sec)
-
-
-
Method Detail
-
requestAccessToken
public jakarta.ws.rs.core.Response requestAccessToken(java.lang.String grantType, java.lang.String code, java.lang.String redirectUri, java.lang.String username, java.lang.String password, java.lang.String scope, java.lang.String assertion, java.lang.String refreshToken, java.lang.String clientId, java.lang.String clientSecret, java.lang.String codeVerifier, java.lang.String ticket, java.lang.String claimToken, java.lang.String claimTokenFormat, java.lang.String pctCode, java.lang.String rptCode, java.lang.String authReqId, java.lang.String deviceCode, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.ws.rs.core.SecurityContext sec)
- Specified by:
requestAccessToken
in interfaceTokenRestWebService
-
getJSonResponse
public java.lang.String getJSonResponse(AccessToken accessToken, io.jans.as.model.common.TokenType tokenType, java.lang.Integer expiresIn, RefreshToken refreshToken, java.lang.String scope, IdToken idToken)
Builds a JSon String with the structure for token issues.
-
-