|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.email.verification.util.Util
public class Util
The utility methods of the Email Verifier component
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static ConfirmationBean |
confirmUser(String secretKey)
Confirms that the link the user clicked is valid. |
static org.wso2.carbon.registry.core.session.UserRegistry |
getConfigSystemRegistry(int tenantId)
|
static org.wso2.carbon.registry.core.service.RegistryService |
getRegistryService()
|
static EmailVerifierConfig |
loadeMailVerificationConfig(String configFilename)
Loads the email configuration from the respective components. |
static void |
requestUserVerification(Map<String,String> data,
EmailVerifierConfig serviceConfig)
Sends an email to the user with the link to verify. |
static void |
setRegistryService(org.wso2.carbon.registry.core.service.RegistryService service)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService service)
public static org.wso2.carbon.registry.core.service.RegistryService getRegistryService()
public static org.wso2.carbon.registry.core.session.UserRegistry getConfigSystemRegistry(int tenantId)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic static EmailVerifierConfig loadeMailVerificationConfig(String configFilename)
configFilename, - the file that contains the email configurations
public static ConfirmationBean confirmUser(String secretKey)
throws Exception
secretKey, - the key that is sent to the user with the email.
Exception, - if confirming the user failed.
Exception
public static void requestUserVerification(Map<String,String> data,
EmailVerifierConfig serviceConfig)
throws Exception
data - of the userserviceConfig, - EmailVerifier Configuration.
Exception, - if sending the user verification mail failed.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||