|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.security.credentials.CredentialPolicy
public class CredentialPolicy
Super-class for a credential policy.
A credential policy can provide one or more restrictions associated with the creation or modification of credential. For instance:
Constructor Summary | |
---|---|
CredentialPolicy()
Default constructor. |
Method Summary | |
---|---|
protected String[] |
getRestrictedUsernameCharacters()
Gets the array of characters that are restricted for a new username. |
protected void |
setRestrictedUsernameCharacters(String[] characters)
Sets the array of characters that are restricted for a new username. |
void |
validateEmailPolicy(String email)
Validates an email address according to policy. |
void |
validatePasswordPolicy(UsernamePasswordCredentials credentials)
Validates password credentials according to policy. |
void |
validateUsernamePolicy(UsernamePasswordCredentials credentials)
Validates username credentials according to policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialPolicy()
Method Detail |
---|
protected String[] getRestrictedUsernameCharacters()
protected void setRestrictedUsernameCharacters(String[] characters)
characters
- the restricted characters.public void validateEmailPolicy(String email) throws EmailPolicyException
email
- the email address to check validate
EmailPolicyException
- if the email policy is violatedpublic void validatePasswordPolicy(UsernamePasswordCredentials credentials) throws CredentialPolicyException
credentials
- the credentials containing the password to validate
PasswordPolicyException
- if the password policy is violated
PasswordConfirmationException
- if the confirmation password does
not match the new password
CredentialPolicyException
public void validateUsernamePolicy(UsernamePasswordCredentials credentials) throws UsernamePolicyException
credentials
- the credentials containing the username to validate
UsernamePolicyException
- if the username policy is violated
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |