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

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


  sb.append(" securityAuthentication=\"").append(
      getSecurityAuthenticationLevel()).append("\"\n");
  sb.append(" securityProtocol=\"").append(
      getSecurityProtocol()).append("\"\n");
 
  Credentials cred = getServiceAccountCredentials();
  if ((cred != null) && (cred instanceof UsernamePasswordCredentials)) {
    UsernamePasswordCredentials upCred = (UsernamePasswordCredentials)cred;
    int nPwdLen = 0;
    if (upCred.getPassword() != null) {
      nPwdLen = upCred.getPassword().length();
View Full Code Here


    String sAuthenticatedDN  = "";
    String sTargetedGroupDN = "";
    LdapUserProperties userProps = getConfiguration().getUserProperties();

    // determine the authentication method
    Credentials credentials = user.getCredentials();
    UsernamePasswordCredentials upCredentials = null;
    boolean bUseDirectConnect = false;
    boolean bUseLoginPattern  = false;
    if (credentials != null) {
      if (credentials instanceof UsernamePasswordCredentials) {
View Full Code Here

  String sSecurityProtocol = conProps.getSecurityProtocol();
  String sPrincipal = "";
  String sPassword = "";

  // check the credentials
  Credentials credentials = getCredentials();
  if (credentials != null) {
    if (credentials instanceof UsernamePasswordCredentials) {
      UsernamePasswordCredentials upCredentials = (UsernamePasswordCredentials)credentials;
      checkDistinguishedName(upCredentials);
      sPrincipal = upCredentials.getDistinguishedName();
View Full Code Here

  throws CredentialsDeniedException, IdentityException, SQLException {
  boolean bAuthenticated = false;
  user.getAuthenticationStatus().reset();
 
  // authenticate
  Credentials credentials = user.getCredentials();
  if (credentials != null) {
    if (credentials instanceof UsernamePasswordCredentials) {
      UsernamePasswordCredentials upCreds = (UsernamePasswordCredentials)credentials;
      bAuthenticated = (getUsername().length() > 0) &&
                       (getPassword().length() > 0) &&
View Full Code Here

* Returns the string representation of the object.
* @return the string
*/
public String toString() {
  StringBuffer sb = new StringBuffer(getClass().getName()).append(" (\n");
  Credentials cred = getServiceAccountCredentials();
  if ((cred != null) && (cred instanceof UsernamePasswordCredentials)) {
    UsernamePasswordCredentials upCred = (UsernamePasswordCredentials)cred;
    int nPwdLen = 0;
    if (upCred.getPassword() != null) {
      nPwdLen = upCred.getPassword().length();
View Full Code Here

    context = RequestContext.extract(request);
   
    StringAttributeMap params = context.getCatalogConfiguration().getParameters();
    String autoAuthenticate = Val.chkStr(params.getValue("BaseServlet.autoAuthenticate"));
    if (!autoAuthenticate.equalsIgnoreCase("false")) {
      Credentials credentials = getCredentials(request);
      if (credentials != null) {
        authenticate(context,credentials);
      }
    }
   
View Full Code Here

     
      /// estabish the publisher
      StringAttributeMap params = context.getCatalogConfiguration().getParameters();
      String autoAuthenticate = Val.chkStr(params.getValue("BaseServlet.autoAuthenticate"));
      if (!autoAuthenticate.equalsIgnoreCase("false")) {
        Credentials credentials = getCredentials(request);
        if (credentials != null) {
          this.authenticate(context,credentials);
        }
      }
      Publisher publisher = new Publisher(context);
View Full Code Here

TOP

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

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.