Package org.apache.syncope.core.logic.wa
Class GoogleMfaAuthTokenLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<AuthProfileTO>
-
- org.apache.syncope.core.logic.AbstractAuthProfileLogic
-
- org.apache.syncope.core.logic.wa.GoogleMfaAuthTokenLogic
-
public class GoogleMfaAuthTokenLogic extends AbstractAuthProfileLogic
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactory
entityFactory
-
Fields inherited from class org.apache.syncope.core.logic.AbstractAuthProfileLogic
authProfileDAO, binder
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description GoogleMfaAuthTokenLogic(EntityFactory entityFactory, AuthProfileDAO authProfileDAO, AuthProfileDataBinder binder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(int otp)
void
delete(String owner)
void
delete(String owner, int otp)
void
delete(LocalDateTime expirationDate)
void
deleteAll()
List<GoogleMfaAuthToken>
list()
List<GoogleMfaAuthToken>
read(String owner)
GoogleMfaAuthToken
read(String owner, int otp)
protected void
removeTokenAndSave(AuthProfile profile, Predicate<GoogleMfaAuthToken> criteria)
void
store(String owner, GoogleMfaAuthToken token)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractAuthProfileLogic
resolveReference
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
GoogleMfaAuthTokenLogic
public GoogleMfaAuthTokenLogic(EntityFactory entityFactory, AuthProfileDAO authProfileDAO, AuthProfileDataBinder binder)
-
-
Method Detail
-
removeTokenAndSave
protected void removeTokenAndSave(AuthProfile profile, Predicate<GoogleMfaAuthToken> criteria)
-
delete
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void delete(LocalDateTime expirationDate)
-
delete
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void delete(String owner, int otp)
-
delete
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void delete(String owner)
-
delete
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void delete(int otp)
-
deleteAll
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void deleteAll()
-
store
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void store(String owner, GoogleMfaAuthToken token)
-
read
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional(readOnly=true) public GoogleMfaAuthToken read(String owner, int otp)
-
list
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional(readOnly=true) public List<GoogleMfaAuthToken> list()
-
read
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional(readOnly=true) public List<GoogleMfaAuthToken> read(String owner)
-
-