Package de.xima.fc.handler.entity
Class UserTokenHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.UserTokenHandler
-
- All Implemented Interfaces:
IAPIHandler
,IGenericHandler
,IUserTokenHandler
,Serializable
public class UserTokenHandler extends GenericHandler implements IUserTokenHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description UserTokenHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserRefreshToken
createRefreshToken(UserContext uc, String userProfileId, String issuer, IClientDescriptor clientDescriptor)
TokenConfiguration
getTokenConfiguration(UserContext uc)
List<UserRefreshToken>
getUserRefreshTokens(UserContext uc, IUser user)
boolean
removeRefreshToken(UserContext uc, UserRefreshToken token)
boolean
removeRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor)
UserRefreshToken
updateRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor)
-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getTokenConfiguration
public TokenConfiguration getTokenConfiguration(UserContext uc)
- Specified by:
getTokenConfiguration
in interfaceIUserTokenHandler
-
updateRefreshToken
public UserRefreshToken updateRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor) throws InvalidTokenException, UnknownTokenException
- Specified by:
updateRefreshToken
in interfaceIUserTokenHandler
- Throws:
InvalidTokenException
UnknownTokenException
-
createRefreshToken
public UserRefreshToken createRefreshToken(UserContext uc, String userProfileId, String issuer, IClientDescriptor clientDescriptor) throws TokenCreateException
- Specified by:
createRefreshToken
in interfaceIUserTokenHandler
- Throws:
TokenCreateException
-
removeRefreshToken
public boolean removeRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor)
- Specified by:
removeRefreshToken
in interfaceIUserTokenHandler
-
removeRefreshToken
public boolean removeRefreshToken(UserContext uc, UserRefreshToken token)
- Specified by:
removeRefreshToken
in interfaceIUserTokenHandler
-
getUserRefreshTokens
public List<UserRefreshToken> getUserRefreshTokens(UserContext uc, IUser user)
- Specified by:
getUserRefreshTokens
in interfaceIUserTokenHandler
-
-