Examples of PrincipalImpl


Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

                    return false;
                }

                Value v = protectedPropInfo.getValues(PropertyType.STRING, resolver)[0];
                String princName = v.getString();
                userManager.setPrincipal(parent, new PrincipalImpl(princName));

                /*
                Execute authorizable actions for a NEW group as this is the
                same place in the userManager#createGroup that the actions
                are called.
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

     * @param password
     * @see UserManager#createUser(String,String)
     * @inheritDoc
     */
    public User createUser(String userID, String password) throws RepositoryException {
        return createUser(userID, password, new PrincipalImpl(userID), null);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

        Principal principal = getPrincipal(acNode.getPath());
        if (principal == null) {
            // use fall back in order to be able to get/remove the policy
            String principalName = getPrincipalName(acNode.getPath());
            log.warn("Principal with name " + principalName + " unknown to PrincipalManager.");
            principal = new PrincipalImpl(principalName);
        }
        return new ACLTemplate(principal, acNode);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

        return false;
    }

    private static boolean initGroup(UserManager uMgr, String principalName) {
        boolean success;
        Principal prnc = new PrincipalImpl(principalName);
        try {
            Authorizable auth = uMgr.getAuthorizable(prnc);
            if (auth == null) {
                success = (uMgr.createGroup(prnc) != null);
            } else {
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

            Set<Principal> s = new HashSet<Principal>();
            for (String pName : impersonators) {
                Principal p = pMgr.getPrincipal(pName);
                if (p == null) {
                    log.debug("Impersonator " + pName + " does not correspond to a known Principal.");
                    p = new PrincipalImpl(pName);
                }
                s.add(p);

            }
            return new PrincipalIteratorAdapter(s);
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

    /**
     * @see UserManager#createUser(String,String)
     */
    public User createUser(String userID, String password) throws RepositoryException {
        return createUser(userID, password, new PrincipalImpl(userID), null);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.principal.PrincipalImpl

    /**
     * @see UserManager#createGroup(String)
     */
    public Group createGroup(String groupID)
        throws AuthorizableExistsException, RepositoryException {
      return createGroup(groupID, new PrincipalImpl(groupID), null);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.security.principal.PrincipalImpl

            return null;
        }

        @Override
        public Principal getPrincipal() {
            return new PrincipalImpl(userId);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.principal.PrincipalImpl

    private Principal getPrincipal(@Nonnull Tree aceTree) {
        String principalName = checkNotNull(TreeUtil.getString(aceTree, REP_PRINCIPAL_NAME));
        Principal principal = principalManager.getPrincipal(principalName);
        if (principal == null) {
            log.debug("Unknown principal " + principalName);
            principal = new PrincipalImpl(principalName);
        }
        return principal;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.principal.PrincipalImpl

    }

    @Override
    public Principal getPrincipal() {
        if (principal == null) {
            principal = new PrincipalImpl(uid);
        }
        return principal;
    }
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.