Class AccessTokenDataBinderImpl
java.lang.Object
org.apache.syncope.core.provisioning.java.data.AccessTokenDataBinderImpl
- All Implemented Interfaces:
AccessTokenDataBinder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenDAO
protected final ConfParamOps
protected final DefaultCredentialChecker
protected final EntityFactory
protected final AccessTokenJWSSigner
protected final SecurityProperties
-
Constructor Summary
ConstructorDescriptionAccessTokenDataBinderImpl
(SecurityProperties securityProperties, AccessTokenJWSSigner jwsSigner, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, EntityFactory entityFactory, DefaultCredentialChecker credentialChecker) -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTokenTO
(AccessToken accessToken) update
(AccessToken accessToken, byte[] authorities)
-
Field Details
-
securityProperties
-
jwsSigner
-
accessTokenDAO
-
confParamOps
-
entityFactory
-
credentialChecker
-
-
Constructor Details
-
AccessTokenDataBinderImpl
public AccessTokenDataBinderImpl(SecurityProperties securityProperties, AccessTokenJWSSigner jwsSigner, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, EntityFactory entityFactory, DefaultCredentialChecker credentialChecker)
-
-
Method Details
-
generateJWT
public Pair<String,OffsetDateTime> generateJWT(String tokenId, String subject, long duration, Map<String, Object> claims) - Specified by:
generateJWT
in interfaceAccessTokenDataBinder
-
create
public Pair<String,OffsetDateTime> create(String subject, Map<String, Object> claims, byte[] authorities, boolean replace) - Specified by:
create
in interfaceAccessTokenDataBinder
-
update
- Specified by:
update
in interfaceAccessTokenDataBinder
-
getAccessTokenTO
- Specified by:
getAccessTokenTO
in interfaceAccessTokenDataBinder
-