Package org.exoplatform.mfa.api
Class MfaService
- java.lang.Object
-
- org.exoplatform.mfa.api.MfaService
-
public class MfaService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMFA_FEATURE
-
Constructor Summary
Constructors Constructor Description MfaService(org.exoplatform.container.xml.InitParams initParams, MfaStorage mfaStorage, org.exoplatform.commons.api.settings.ExoFeatureService featureService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.listener.ListenerService listenerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnector(MfaSystemComponentPlugin mfaSystemComponentPlugin)booleanaddRevocationRequest(String username, String mfaType)voidcancelRevocationRequest(Long id)voidconfirmRevocationRequest(Long id)booleancurrentUserIsInProtectedGroup(org.exoplatform.services.security.Identity identity)voiddeleteRevocationRequest(String username, String type)List<RevocationRequest>getAllRevocationRequests()List<String>getAvailableMfaSystems()StringgetMfaSystem()MfaSystemServicegetMfaSystemService()MfaSystemServicegetMfaSystemService(String type)List<String>getProtectedGroups()RevocationRequestgetRevocationRequestById(Long id)booleanhasRevocationRequest(String username, String mfaType)booleanisMfaFeatureActivated()booleanisProtectedUri(String requestUri)voidsaveActiveFeature(String status)voidsaveProtectedGroups(String groups)booleansetMfaSystem(String mfaSystem)
-
-
-
Field Detail
-
MFA_FEATURE
public static final String MFA_FEATURE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MfaService
public MfaService(org.exoplatform.container.xml.InitParams initParams, MfaStorage mfaStorage, org.exoplatform.commons.api.settings.ExoFeatureService featureService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Detail
-
getMfaSystemService
public MfaSystemService getMfaSystemService(String type)
-
addConnector
public void addConnector(MfaSystemComponentPlugin mfaSystemComponentPlugin)
-
isProtectedUri
public boolean isProtectedUri(String requestUri)
-
currentUserIsInProtectedGroup
public boolean currentUserIsInProtectedGroup(org.exoplatform.services.security.Identity identity)
-
getMfaSystem
public String getMfaSystem()
-
getMfaSystemService
public MfaSystemService getMfaSystemService()
-
getAllRevocationRequests
public List<RevocationRequest> getAllRevocationRequests()
-
getRevocationRequestById
public RevocationRequest getRevocationRequestById(Long id)
-
confirmRevocationRequest
public void confirmRevocationRequest(Long id)
-
cancelRevocationRequest
public void cancelRevocationRequest(Long id)
-
saveActiveFeature
public void saveActiveFeature(String status)
-
setMfaSystem
public boolean setMfaSystem(String mfaSystem)
-
isMfaFeatureActivated
public boolean isMfaFeatureActivated()
-
saveProtectedGroups
public void saveProtectedGroups(String groups)
-
-