Class AuthentificationManager
java.lang.Object
org.silverpeas.mobile.client.common.AuthentificationManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidauthenticateOnSilverpeas(String login, String password, String domainId, com.google.gwt.user.client.Command attempt) voidauthenticateTwoFactor(String login, String password, String domainId, String code, boolean trustDevice, com.google.gwt.user.client.Command attempt) voidauthenticateTwoFactor(String login, String password, String domainId, String code, boolean trustDevice, com.google.gwt.user.client.Command attempt, com.google.gwt.user.client.Command onInvalidCode) voidvoidClean data in local storage while preserving local credentials.voidcompleteEnrollment(String login, String password, String domainId, RestMethod method, UserProfileDTO profile) decryptPassword(String passwordEncrysted) Decrypt password in local storage.static AuthentificationManagervoidinjectAuthenticationHttpHeaders(com.google.gwt.http.client.RequestBuilder builder) loadUser()voidlogout()voidstoreUser(DetailUserDTO user, UserProfileDTO profil, String login, String password, String domainId) voidupdateAvatarInCache(String avatarData)
-
Field Details
-
USER_PROFIL
- See Also:
-
XSTKN
- See Also:
-
LOCAL_CREDENTIAL
- See Also:
-
XSilverpeasSession
- See Also:
-
-
Constructor Details
-
AuthentificationManager
public AuthentificationManager()
-
-
Method Details
-
getInstance
-
addHeader
-
getHeader
-
updateAvatarInCache
-
clearLocalStorage
public void clearLocalStorage()Clean data in local storage while preserving local credentials. -
loadUser
-
decryptPassword
Decrypt password in local storage.- Parameters:
passwordEncrysted-- Returns:
-
authenticateOnSilverpeas
-
authenticateTwoFactor
-
authenticateTwoFactor
-
injectAuthenticationHttpHeaders
public void injectAuthenticationHttpHeaders(com.google.gwt.http.client.RequestBuilder builder) -
logout
public void logout() -
clearCache
public void clearCache()
-