Examples of DBLoginInfo


Examples of de.innovationgate.wgpublisher.DBLoginInfo

   
    String domain = (String) db.getAttribute(WGACore.DBATTRIB_DOMAIN);
    if(hm==null) return "";
    if(hm.isEmpty()) return "";
         
    DBLoginInfo li = (DBLoginInfo) hm.get(domain);
    return li.getPassword();
   
  }
View Full Code Here

Examples of de.innovationgate.wgpublisher.DBLoginInfo

   
    @CodeCompletion
    public void changesessionpassword(String domain, String newPassword) {
       
        // Fetch the login info for the current user
        DBLoginInfo loginInfo = (DBLoginInfo) getwgacore().getSessionLogins(gethttpsession()).get(domain);
        if (loginInfo == null) {
            return;
        }
      
        // Change password on login info
        loginInfo.setCredentials(newPassword);
       
        // Change cached password on domain auth module, if it is password-caching
        if (!WGDatabase.SESSIONTOKEN_USER.equals(loginInfo.getUserName())) {
            DomainConfiguration domConfig = getwgacore().getDomainConfig(domain);
            if (domConfig != null && domConfig.getAuthModule() instanceof PasswordCachingAuthenticationModule) {
                PasswordCachingAuthenticationModule module = (PasswordCachingAuthenticationModule) domConfig.getAuthModule();
                module.dropPasswordCache(loginInfo.getUserName());       
    }
        }
       
       
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.DBLoginInfo

      if (name.equalsIgnoreCase("name")) {
          return domainName;
      }
     
      else if (name.equalsIgnoreCase("username")) {
          DBLoginInfo loginInfo = getwgacore().getSessionLogins(gethttpsession()).get(domainName);
          if (loginInfo != null) {
              return loginInfo.getUserName();
          }
          else {
              return WGDatabase.ANONYMOUS_USER;
          }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.