Class OAuthSessionDaoImpl
java.lang.Object
com.peterphi.std.guice.hibernate.dao.HibernateDao<OAuthSessionEntity,String>
com.peterphi.usermanager.db.dao.hibernate.OAuthSessionDaoImpl
- All Implemented Interfaces:
Dao<OAuthSessionEntity,
String>
-
Field Summary
Fields inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
clazz, isLargeTable, searchExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(OAuthSessionContextEntity context, String initiator, org.joda.time.DateTime expires) exchangeCodeForToken
(OAuthServiceEntity service, String authorisationCode) exchangeRefreshTokenForNewToken
(OAuthServiceEntity service, String refreshToken, org.joda.time.DateTime newExpires) getByToken
(String token) getSessionToDelegateByRefreshToken
(OAuthServiceEntity service, String refreshToken) Methods inherited from class com.peterphi.std.guice.hibernate.dao.HibernateDao
count, createCriteria, createCriteriaQuery, createCriteriaQuery, createQueryBuilder, createReadQuery, createWriteQuery, delete, deleteById, find, find, find, findByUriQuery, findIds, findIdsByUriQuery, getAll, getById, getByIds, getByUniqueProperty, getCriteriaBuilder, getEntityType, getIdList, getIdList, getIdList, getIds, getList, getList, getList, getListById, getListById, getQEntity, getReference, getSession, getSessionFactory, getWriteSession, idProperty, merge, save, saveOrUpdate, setTypeLiteral, uniqueResult, uniqueResult, uniqueResult, update
-
Constructor Details
-
OAuthSessionDaoImpl
public OAuthSessionDaoImpl()
-
-
Method Details
-
create
public OAuthSessionEntity create(OAuthSessionContextEntity context, String initiator, org.joda.time.DateTime expires) -
exchangeRefreshTokenForNewToken
public OAuthSessionEntity exchangeRefreshTokenForNewToken(OAuthServiceEntity service, String refreshToken, org.joda.time.DateTime newExpires) -
getSessionToDelegateByRefreshToken
public OAuthSessionEntity getSessionToDelegateByRefreshToken(OAuthServiceEntity service, String refreshToken) -
exchangeCodeForToken
public OAuthSessionEntity exchangeCodeForToken(OAuthServiceEntity service, String authorisationCode) -
extend
-
getByToken
-