Examples of IdentityService


Examples of org.eclipse.jetty.security.IdentityService

    public SecurityHandler buildSecurityHandler(String policyContextID, Subject defaultSubject, RunAsSource runAsSource, boolean checkRolePermissions) {
        if (defaultSubject == null) {
            defaultSubject = ContextManager.EMPTY;
        }
        AccessControlContext defaultAcc = ContextManager.registerSubjectShort(defaultSubject, null, null);
        IdentityService identityService = new JettyIdentityService(defaultAcc, defaultSubject, runAsSource);
        return new JaccSecurityHandler(policyContextID, authenticator, loginService, identityService, defaultAcc);
    }
View Full Code Here

Examples of org.exoplatform.social.client.api.service.IdentityService

        restIdentity = SocialJSONDecodingSupport.parser(RestIdentity.class, posterIdentityString);
      } catch (Exception e) {
        throw new ServiceException(ActivityService.class,e.getMessage(), e);
      }
    } else {
      IdentityService service = ClientServiceFactoryHelper.getClientServiceFactory().createIdentityService();
      restIdentity = (RestIdentity) service.get(this.getIdentityId());
    }
    return restIdentity;
  }
View Full Code Here

Examples of org.jbpm.api.IdentityService

  protected Logger loger = Logger.getLogger(ProcessToolJbpmSession.class.getName());

    public ProcessToolJbpmSession(UserData user, Collection<String> roleNames, ProcessToolContext ctx) {
        super(user, roleNames, ctx.getRegistry());
        if (user != null) {
            IdentityService is = getProcessEngine(ctx).getIdentityService();
            User jbpmUser = is.findUserById(user.getLogin());
            if (jbpmUser == null) {
                is.createUser(user.getLogin(), user.getRealName(), user.getEmail());
            }
            getProcessEngine(ctx).setAuthenticatedUserId(user.getLogin());

        }
    }
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.