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 UserRefreshTokencreateRefreshToken(UserContext uc, String userProfileId, String issuer, IClientDescriptor clientDescriptor)TokenConfigurationgetTokenConfiguration(UserContext uc)List<UserRefreshToken>getUserRefreshTokens(UserContext uc, IUser user)booleanremoveRefreshToken(UserContext uc, UserRefreshToken token)booleanremoveRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor)UserRefreshTokenupdateRefreshToken(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:
getTokenConfigurationin interfaceIUserTokenHandler
-
updateRefreshToken
public UserRefreshToken updateRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor) throws InvalidTokenException, UnknownTokenException
- Specified by:
updateRefreshTokenin interfaceIUserTokenHandler- Throws:
InvalidTokenExceptionUnknownTokenException
-
createRefreshToken
public UserRefreshToken createRefreshToken(UserContext uc, String userProfileId, String issuer, IClientDescriptor clientDescriptor) throws TokenCreateException
- Specified by:
createRefreshTokenin interfaceIUserTokenHandler- Throws:
TokenCreateException
-
removeRefreshToken
public boolean removeRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor)
- Specified by:
removeRefreshTokenin interfaceIUserTokenHandler
-
removeRefreshToken
public boolean removeRefreshToken(UserContext uc, UserRefreshToken token)
- Specified by:
removeRefreshTokenin interfaceIUserTokenHandler
-
getUserRefreshTokens
public List<UserRefreshToken> getUserRefreshTokens(UserContext uc, IUser user)
- Specified by:
getUserRefreshTokensin interfaceIUserTokenHandler
-
-