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

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


      }
    }
   
  } catch (AuthenticationException e) {
    user.getAuthenticationStatus().reset();
    throw new CredentialsDeniedException("Invalid credentials.");
  } catch (com.esri.gpt.framework.context.ConfigurationException e) {
    user.getAuthenticationStatus().reset();
    throw new IdentityException(e.getMessage(),e);
  } catch (NamingException e) {
    user.getAuthenticationStatus().reset();
View Full Code Here


    // ensure a local reference for the user
    LocalDao localDao = new LocalDao(getRequestContext());
    localDao.ensureReferenceToRemoteUser(user);
  }
  if (!bAuthenticated) {
    throw new CredentialsDeniedException("Invalid credentials.");
  }
}
View Full Code Here

  }

  // ensure that a login request was authenticated
  if (sService.toLowerCase().equals("login")) {
    if (!context.getUser().getAuthenticationStatus().getWasAuthenticated()) {
      throw new CredentialsDeniedException("Invalid credentials.");
    }
  }

  boolean proxyMode = true;
 
View Full Code Here

      }
    }
    getLogger().finer("Authorization username="+creds.getUsername());
    if ((creds.getUsername().length() == 0) ||
        (creds.getPassword().length() == 0)) {
      throw new CredentialsDeniedException("Invalid credentials.");
    }
  }
  return creds;
}
View Full Code Here

TOP

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

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.