Class TokenRestWebServiceImpl

  • All Implemented Interfaces:
    TokenRestWebService

    @Path("/")
    public class TokenRestWebServiceImpl
    extends Object
    implements TokenRestWebService
    Provides interface for token REST web services
    Version:
    October 5, 2021
    Author:
    Yuriy Zabrovarnyy, Javier Rojas Blum
    • Constructor Detail

      • TokenRestWebServiceImpl

        public TokenRestWebServiceImpl()
    • Method Detail

      • getJSonResponse

        public String getJSonResponse​(AccessToken accessToken,
                                      io.jans.as.model.common.TokenType tokenType,
                                      Integer expiresIn,
                                      RefreshToken refreshToken,
                                      String scope,
                                      IdToken idToken,
                                      io.jans.as.model.authzdetails.AuthzDetails checkedAuthzDetails)
        Builds a JSon String with the structure for token issues.
      • fillJsonObject

        public static void fillJsonObject​(org.json.JSONObject jsonObj,
                                          AccessToken accessToken,
                                          io.jans.as.model.common.TokenType tokenType,
                                          Integer expiresIn,
                                          RefreshToken refreshToken,
                                          String scope,
                                          IdToken idToken,
                                          io.jans.as.model.authzdetails.AuthzDetails checkedAuthzDetails)