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

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


            bUseLoginPattern = (sPattern.length() > 0);
          }
        }
       
      } else if (credentials instanceof DistinguishedNameCredential) {
        DistinguishedNameCredential dnCredential;
        dnCredential = (DistinguishedNameCredential)credentials;
        sAuthenticatedDN = dnCredential.getDistinguishedName();
       
      } else if (credentials instanceof UsernameCredential) {
        UsernameCredential unCredential = (UsernameCredential)credentials;
        String sBaseDN = userProps.getUserSearchDIT();
        String sFilter = userProps.returnUserLoginSearchFilter(unCredential.getUsername());
View Full Code Here


      bAuthenticated = (getUsername().length() > 0) &&
                       (getPassword().length() > 0) &&
                       upCreds.getUsername().equalsIgnoreCase(getUsername()) &&
                       upCreds.getPassword().equals(getPassword());
    } else if (credentials instanceof DistinguishedNameCredential) {
      DistinguishedNameCredential dnCred = (DistinguishedNameCredential)credentials;
      bAuthenticated = (getDN().length() > 0) &&
                       dnCred.getDistinguishedName().equalsIgnoreCase(getDN());
    } else if (credentials instanceof UsernameCredential) {
      UsernameCredential unCred = (UsernameCredential)credentials;
      bAuthenticated = (getUsername().length() > 0) &&
                       unCred.getUsername().equalsIgnoreCase(getUsername());
    }
View Full Code Here

  if(parts.length > 0) {
    String userIdentifier = Val.chkStr(URLDecoder.decode(parts[5].trim(),"UTF-8"));
    if(userIdentifier.endsWith(userDIT)){
      user.setDistinguishedName(userIdentifier);
      DistinguishedNameCredential dnCredential = new DistinguishedNameCredential();
      dnCredential.setDistinguishedName(userIdentifier);
      user.setCredentials(dnCredential);
    }else if(userIdentifier.length() > 0) {
      user.setCredentials(new UsernameCredential(userIdentifier));
    }
    ((LdapIdentityAdapter)idAdapter).populateUser(context, user);
View Full Code Here

    }
   
  } else {
   
    // authenticate the publisher based upon the supplied distinguished name
    DistinguishedNameCredential dnCred = new DistinguishedNameCredential(userDN);
    setCredentials(dnCred);
    context.newIdentityAdapter().authenticate(this);
  }

  // establish credentials
View Full Code Here

         NotAuthorizedException, ImsServiceException {
 
  // create the publisher
  String sAdminDN = context.getIdentityConfiguration().getCatalogAdminDN();
  Publisher admin = new Publisher();
  DistinguishedNameCredential dnCred = new DistinguishedNameCredential(sAdminDN);
  admin.setCredentials(dnCred);
  context.newIdentityAdapter().authenticate(admin);
 
  // establish credentials
  UsernamePasswordCredentials creds = new UsernamePasswordCredentials();
View Full Code Here

TOP

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

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.