Package org.apache.syncope.core.logic
Class AccessTokenLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<AccessTokenTO>
-
- org.apache.syncope.core.logic.AccessTokenLogic
-
public class AccessTokenLogic extends AbstractTransactionalLogic<AccessTokenTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTokenDAO
accessTokenDAO
protected AccessTokenDataBinder
binder
protected static Encryptor
ENCRYPTOR
protected SecurityProperties
securityProperties
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description AccessTokenLogic(SecurityProperties securityProperties, AccessTokenDataBinder binder, AccessTokenDAO accessTokenDAO)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String key)
protected static byte[]
getAuthorities()
Pair<Integer,List<AccessTokenTO>>
list(int page, int size, List<OrderByClause> orderByClauses)
Pair<String,OffsetDateTime>
login()
void
logout()
Pair<String,OffsetDateTime>
refresh()
protected AccessTokenTO
resolveReference(Method method, Object... args)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
ENCRYPTOR
protected static final Encryptor ENCRYPTOR
-
securityProperties
protected final SecurityProperties securityProperties
-
binder
protected final AccessTokenDataBinder binder
-
accessTokenDAO
protected final AccessTokenDAO accessTokenDAO
-
-
Constructor Detail
-
AccessTokenLogic
public AccessTokenLogic(SecurityProperties securityProperties, AccessTokenDataBinder binder, AccessTokenDAO accessTokenDAO)
-
-
Method Detail
-
getAuthorities
protected static byte[] getAuthorities()
-
login
@PreAuthorize("isAuthenticated()") public Pair<String,OffsetDateTime> login()
-
refresh
@PreAuthorize("isAuthenticated()") public Pair<String,OffsetDateTime> refresh()
-
logout
@PreAuthorize("isAuthenticated()") public void logout()
-
list
@PreAuthorize("hasRole(\'ACCESS_TOKEN_LIST\')") public Pair<Integer,List<AccessTokenTO>> list(int page, int size, List<OrderByClause> orderByClauses)
-
delete
@PreAuthorize("hasRole(\'ACCESS_TOKEN_DELETE\')") public void delete(String key)
-
resolveReference
protected AccessTokenTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<AccessTokenTO>
- Throws:
UnresolvedReferenceException
-
-