Package io.jans.as.server.token.ws.rs
Class TokenExchangeService
- java.lang.Object
-
- io.jans.as.server.token.ws.rs.TokenExchangeService
-
@Named public class TokenExchangeService extends Object
- Author:
- Yuriy Z
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEVICE_SECRET
-
Constructor Summary
Constructors Constructor Description TokenExchangeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createNewDeviceSecret(String sessionDn, io.jans.as.common.model.registration.Client client, String scope)
org.json.JSONObject
processTokenExchange(String scope, Function<io.jans.as.model.token.JsonWebResponse,Void> idTokenPreProcessing, ExecutionContext executionContext)
String
rotateDeviceSecret(io.jans.as.common.model.session.SessionId sessionId, String deviceSecret)
String
rotateDeviceSecret(io.jans.as.common.model.session.SessionId sessionId, String deviceSecret, boolean forceRotation)
void
rotateDeviceSecretOnRefreshToken(jakarta.servlet.http.HttpServletRequest httpRequest, AuthorizationGrant refreshGrant, String scope)
-
-
-
Field Detail
-
DEVICE_SECRET
public static final String DEVICE_SECRET
- See Also:
- Constant Field Values
-
-
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)
-
-