Class TokenExchangeService


  • @Named
    public class TokenExchangeService
    extends Object
    Author:
    Yuriy Z
    • Constructor Detail

      • TokenExchangeService

        public TokenExchangeService()
    • Method Detail

      • rotateDeviceSecretOnRefreshToken

        public void rotateDeviceSecretOnRefreshToken​(jakarta.servlet.http.HttpServletRequest httpRequest,
                                                     AuthorizationGrant refreshGrant,
                                                     String scope)
      • rotateDeviceSecret

        public String rotateDeviceSecret​(io.jans.as.common.model.session.SessionId sessionId,
                                         String deviceSecret)
      • rotateDeviceSecret

        public String rotateDeviceSecret​(io.jans.as.common.model.session.SessionId sessionId,
                                         String deviceSecret,
                                         boolean forceRotation)
      • processTokenExchange

        public org.json.JSONObject processTokenExchange​(String scope,
                                                        Function<io.jans.as.model.token.JsonWebResponse,​Void> idTokenPreProcessing,
                                                        ExecutionContext executionContext)
      • createNewDeviceSecret

        public String createNewDeviceSecret​(String sessionDn,
                                            io.jans.as.common.model.registration.Client client,
                                            String scope)