org.wso2.registry.users.verifier
Class EmailVerifier
java.lang.Object
org.wso2.registry.users.verifier.EmailVerifier
public class EmailVerifier
- extends java.lang.Object
Method Summary |
boolean |
confirmUser(java.lang.String confString)
The user has clicked on the string. |
protected static void |
createDatabase()
|
java.lang.String |
getUserName(java.lang.String confString)
Returns the user name for matching config string. |
static void |
init(UserRealm realmInstance,
EmailVerifierConfig verifierConfig)
Configures the Email Verifier |
void |
requestUserVerification(java.lang.String username,
java.lang.String emailAddress,
java.lang.String password,
java.util.Map properties,
java.lang.String salutation)
This method
1) Stores the user information. |
protected void |
sendEmail(java.lang.String confString,
java.lang.String emailAddr,
java.lang.String epr,
java.lang.String msgBody)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRIVER
public static final java.lang.String DRIVER
- See Also:
- Constant Field Values
PROTOCOL
public static final java.lang.String PROTOCOL
- See Also:
- Constant Field Values
CONF_STRING
public static final java.lang.String CONF_STRING
- See Also:
- Constant Field Values
EmailVerifier
public EmailVerifier()
init
public static void init(UserRealm realmInstance,
EmailVerifierConfig verifierConfig)
throws UserStoreException
- Configures the Email Verifier
- Parameters:
realmInstance
- -
The realm instance where the email verifier is going to call
addUserverifierConfig
- -
Email Verifierification config
- Throws:
UserStoreException
getUserName
public java.lang.String getUserName(java.lang.String confString)
throws UserStoreException
- Returns the user name for matching config string. This can be used to get
the user name at the time where user is confirmed by the email.
- Parameters:
confString
-
- Returns:
-
- Throws:
UserStoreException
confirmUser
public boolean confirmUser(java.lang.String confString)
throws UserStoreException
- The user has clicked on the string.
This method checks whether it is the correct confirmation.
- Parameters:
confString
-
- Returns:
-
- Throws:
UserStoreException
requestUserVerification
public void requestUserVerification(java.lang.String username,
java.lang.String emailAddress,
java.lang.String password,
java.util.Map properties,
java.lang.String salutation)
throws UserStoreException
- This method
1) Stores the user information.
2) Generates the random number
3) Sends the mail
- Parameters:
username
- emailAddress
- password
- properties
- salutation
- - could be null
- Throws:
UserStoreException
sendEmail
protected void sendEmail(java.lang.String confString,
java.lang.String emailAddr,
java.lang.String epr,
java.lang.String msgBody)
throws UserStoreException
- Throws:
UserStoreException
createDatabase
protected static void createDatabase()
throws UserStoreException
- Throws:
UserStoreException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.