Class AccessTokenDataBinderImpl
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.data.AccessTokenDataBinderImpl
-
- All Implemented Interfaces:
AccessTokenDataBinder
public class AccessTokenDataBinderImpl extends Object implements AccessTokenDataBinder
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTokenDAO
accessTokenDAO
protected ConfParamOps
confParamOps
protected DefaultCredentialChecker
credentialChecker
protected EntityFactory
entityFactory
protected AccessTokenJWSSigner
jwsSigner
protected SecurityProperties
securityProperties
-
Constructor Summary
Constructors Constructor Description AccessTokenDataBinderImpl(SecurityProperties securityProperties, AccessTokenJWSSigner jwsSigner, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, EntityFactory entityFactory, DefaultCredentialChecker credentialChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<String,OffsetDateTime>
create(String subject, Map<String,Object> claims, byte[] authorities, boolean replace)
Pair<String,OffsetDateTime>
generateJWT(String tokenId, String subject, long duration, Map<String,Object> claims)
AccessTokenTO
getAccessTokenTO(AccessToken accessToken)
Pair<String,OffsetDateTime>
update(AccessToken accessToken, byte[] authorities)
-
-
-
Field Detail
-
securityProperties
protected final SecurityProperties securityProperties
-
jwsSigner
protected final AccessTokenJWSSigner jwsSigner
-
accessTokenDAO
protected final AccessTokenDAO accessTokenDAO
-
confParamOps
protected final ConfParamOps confParamOps
-
entityFactory
protected final EntityFactory entityFactory
-
credentialChecker
protected final DefaultCredentialChecker credentialChecker
-
-
Constructor Detail
-
AccessTokenDataBinderImpl
public AccessTokenDataBinderImpl(SecurityProperties securityProperties, AccessTokenJWSSigner jwsSigner, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, EntityFactory entityFactory, DefaultCredentialChecker credentialChecker)
-
-
Method Detail
-
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
public Pair<String,OffsetDateTime> update(AccessToken accessToken, byte[] authorities)
- Specified by:
update
in interfaceAccessTokenDataBinder
-
getAccessTokenTO
public AccessTokenTO getAccessTokenTO(AccessToken accessToken)
- Specified by:
getAccessTokenTO
in interfaceAccessTokenDataBinder
-
-