Package com.esri.gpt.framework.security.credentials

Examples of com.esri.gpt.framework.security.credentials.CredentialPolicy


    User testUser = new User();
    testUser.setCredentials(testCred);
    authenticate(testUser);
   
    // ensure that the new credentials are valid
    CredentialPolicy policy = new CredentialPolicy();
    policy.validatePasswordPolicy(newCred);
   
    // update the password
    client = newServiceConnection();
    client.getEditFunctions().updateUserPassword(
           client.getConnectedContext(),user,newCred);
View Full Code Here


  throws CredentialPolicyException, IdentityException, NamingException, SQLException {
  LdapClient client = null;
  try {
   
    // ensure that the new credentials are valid
    CredentialPolicy policy = new CredentialPolicy();
    UsernamePasswordCredentials cred;
    cred = user.getCredentials().getUsernamePasswordCredentials();
    policy.validateUsernamePolicy(cred);
    policy.validatePasswordPolicy(cred);
    policy.validateEmailPolicy(user.getProfile().getEmailAddress());
   
    // register the user
    client = newServiceConnection();
    client.getEditFunctions().registerUser(client.getConnectedContext(),user);
  } finally {
View Full Code Here

  throws CredentialPolicyException, IdentityException, NamingException, SQLException
  LdapClient client = null;
  try {
   
    // ensure that the email address is valid, update the profile
    CredentialPolicy policy = new CredentialPolicy();
    policy.validateEmailPolicy(user.getProfile().getEmailAddress());
    client = newServiceConnection();
    client.getEditFunctions().updateUserProfile(
           client.getConnectedContext(),user,false,false);
  } finally {
    if (client != null) client.close();
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.security.credentials.CredentialPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.