Package com.filenet.api.util

Examples of com.filenet.api.util.UserContext


    if (password == null) {
      logger.log(Level.WARNING, "Password is NULL");
      throw new RepositoryLoginException();
    }

    UserContext uc = UserContext.get();
    try {
      Subject s = UserContext.createSubject(
          ((FnConnection) conn).getConnection(), username, password,
          "FileNetP8");
      uc.pushSubject(s);
      User u = Factory.User.fetchCurrent(((FnConnection) conn).getConnection(),
          null);
      logger.info("User: " + u.get_Name() + " is authenticated");

      FnCredentialMap.putUserCred(username, password);
View Full Code Here

TOP

Related Classes of com.filenet.api.util.UserContext

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.