Class ExternalUpdateTokenService
- java.lang.Object
-
- io.jans.service.custom.script.ExternalScriptService
-
- io.jans.as.server.service.external.ExternalUpdateTokenService
-
- All Implemented Interfaces:
java.io.Serializable
@ApplicationScoped public class ExternalUpdateTokenService extends io.jans.service.custom.script.ExternalScriptService
- Author:
- Yuriy Movchan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalUpdateTokenService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void>
buildModifyIdTokenProcessor(ExternalUpdateTokenContext context)
int
getAccessTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
int
getAccessTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
int
getIdTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
int
getIdTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
int
getRefreshTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
int
getRefreshTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
boolean
modifyAccessToken(AccessToken accessToken, ExternalUpdateTokenContext context)
boolean
modifyAccessToken(io.jans.model.custom.script.conf.CustomScriptConfiguration script, AccessToken accessToken, ExternalUpdateTokenContext context)
boolean
modifyIdTokenMethod(io.jans.model.custom.script.conf.CustomScriptConfiguration script, io.jans.as.model.token.JsonWebResponse jsonWebResponse, ExternalUpdateTokenContext context)
boolean
modifyIdTokenMethods(io.jans.as.model.token.JsonWebResponse jsonWebResponse, ExternalUpdateTokenContext context)
boolean
modifyRefreshToken(RefreshToken refreshToken, ExternalUpdateTokenContext context)
boolean
modifyRefreshToken(io.jans.model.custom.script.conf.CustomScriptConfiguration script, RefreshToken refreshToken, ExternalUpdateTokenContext context)
-
Methods inherited from class io.jans.service.custom.script.ExternalScriptService
addExternalConfigurations, clearScriptError, configure, determineDefaultCustomScriptConfiguration, executeExternalGetApiVersion, getCustomScriptConfigurationByName, getCustomScriptConfigurations, getCustomScriptConfigurationsByDns, getCustomScriptType, getDefaultExternalCustomScript, init, isEnabled, isLoaded, reload, reloadExternal, saveScriptError
-
-
-
-
Method Detail
-
modifyIdTokenMethod
public boolean modifyIdTokenMethod(io.jans.model.custom.script.conf.CustomScriptConfiguration script, io.jans.as.model.token.JsonWebResponse jsonWebResponse, ExternalUpdateTokenContext context)
-
modifyIdTokenMethods
public boolean modifyIdTokenMethods(io.jans.as.model.token.JsonWebResponse jsonWebResponse, ExternalUpdateTokenContext context)
-
buildModifyIdTokenProcessor
public java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> buildModifyIdTokenProcessor(ExternalUpdateTokenContext context)
-
getRefreshTokenLifetimeInSeconds
public int getRefreshTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
-
getRefreshTokenLifetimeInSeconds
public int getRefreshTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
-
modifyRefreshToken
public boolean modifyRefreshToken(io.jans.model.custom.script.conf.CustomScriptConfiguration script, RefreshToken refreshToken, ExternalUpdateTokenContext context)
-
modifyRefreshToken
public boolean modifyRefreshToken(RefreshToken refreshToken, ExternalUpdateTokenContext context)
-
modifyAccessToken
public boolean modifyAccessToken(io.jans.model.custom.script.conf.CustomScriptConfiguration script, AccessToken accessToken, ExternalUpdateTokenContext context)
-
modifyAccessToken
public boolean modifyAccessToken(AccessToken accessToken, ExternalUpdateTokenContext context)
-
getAccessTokenLifetimeInSeconds
public int getAccessTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
-
getAccessTokenLifetimeInSeconds
public int getAccessTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
-
getIdTokenLifetimeInSeconds
public int getIdTokenLifetimeInSeconds(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ExternalUpdateTokenContext context)
-
getIdTokenLifetimeInSeconds
public int getIdTokenLifetimeInSeconds(ExternalUpdateTokenContext context)
-
-