Class OnboardingTokenService
java.lang.Object
org.exoplatform.web.security.security.AbstractTokenService<PortalToken,String>
org.exoplatform.web.security.security.CookieTokenService
org.exoplatform.web.security.security.OnboardingTokenService
- All Implemented Interfaces:
TokenStore,org.picocontainer.Startable
The issuer of the onboarding tokens, the links from which an invited user
sets their own password: its validity is configured on its own
(gatein.portal.onboarding.expiretime, in days), apart from the password
reminder's. It shares the password reminder's storage, the type of the
token telling them apart.
-
Field Summary
Fields inherited from class org.exoplatform.web.security.security.CookieTokenService
EMAIL_VALIDATION_TOKEN, EXTERNAL_REGISTRATION_TOKEN, FORGOT_PASSWORD_TOKEN, HASH_SERVICE_INIT_PARAM, LIFECYCLE_NAME, ONBOARD_TOKEN, SEPARATOR_CHARFields inherited from class org.exoplatform.web.security.security.AbstractTokenService
CLEANUP_PERIOD_TIME, DEFAULT_TOKEN_BYTE_LENGTH, delayTime, log, name, SERVICE_CONFIG, tokenByteLength, validityMillis -
Constructor Summary
ConstructorsConstructorDescriptionOnboardingTokenService(org.exoplatform.container.xml.InitParams initParams, PortalTokenStorage tokenStore) -
Method Summary
Methods inherited from class org.exoplatform.web.security.security.CookieTokenService
cleanExpiredTokens, createToken, createToken, decodeKey, deleteAll, deleteToken, deleteToken, deleteTokensByUsernameAndType, deleteTokensOfUser, getToken, getToken, sizeMethods inherited from class org.exoplatform.web.security.security.AbstractTokenService
getInstance, getName, getPeriodTime, getValidityTime, nextRandom, start, stop, validateToken
-
Constructor Details
-
OnboardingTokenService
public OnboardingTokenService(org.exoplatform.container.xml.InitParams initParams, PortalTokenStorage tokenStore) throws TokenServiceInitializationException
-
-
Method Details
-
getValidityMillis
public long getValidityMillis()- Returns:
- the validity of a token this service issues, in milliseconds
-
nextTokenId
- Overrides:
nextTokenIdin classCookieTokenService
-