Examples of Principal


Examples of org.kuali.rice.kim.api.identity.principal.Principal

    for (EntityExternalIdentifierBo extId: results) {
      entityId = extId.getEntityId();
    }
    // get the first principal and return details
    Entity entity = getIdentityService().getEntity(entityId);
    Principal principal = entity.getPrincipals().get(0);
    List<GrantedAuthority> auths = new ArrayList<GrantedAuthority>();
    auths.add(new SimpleGrantedAuthority("ROLE_USER"));
    if (principal.isActive()) {
      return new User(principal.getPrincipalName(), "password", true, true, true, true, auths);
    } else {
      return new User(principal.getPrincipalName(), "password", false, false, false, false, auths);
    }
  }
View Full Code Here

Examples of org.omg.CORBA.Principal

    public Principal read_Principal() {
        int len = read_long();
        byte[] pvalue = new byte[len];
        read_octet_array(pvalue,0,len);

        Principal p = new PrincipalImpl();
        p.name(pvalue);
        return p;
    }
View Full Code Here

Examples of org.rest.sec.model.Principal

    }

    @Override
    @Transactional(readOnly = true)
    public User searchOne(final Triple<String, ClientOperation, String>... constraints) {
        final Principal principalResultedFromSearch = principalService.searchOne(constraints);
        final User userResultedFromSearch = new PrincipalToUserFunction().apply(principalResultedFromSearch);

        return userResultedFromSearch;
    }
View Full Code Here

Examples of org.rhq.core.domain.auth.Principal

    /**
     * @see org.rhq.enterprise.server.auth.SubjectManagerLocal#createPrincipal(Subject, String, String)
     */
    @RequiredPermission(Permission.MANAGE_SECURITY)
    public void createPrincipal(Subject whoami, String username, String password) throws SubjectException {
        Principal principal = new Principal(username, CryptoUtil.createPasswordHash("MD5", "base64", null, null,
            password));
        createPrincipal(whoami, principal);
    }
View Full Code Here

Examples of org.structr.core.entity.Principal

  }

  @Override
  public String getOwnerName() {
    try (Tx tx = StructrApp.getInstance().tx()) {
      Principal owner = getOwner();
      return owner != null ? owner.getProperty(AbstractUser.name) : "";
    } catch (FrameworkException fex) {
      logger.log(Level.SEVERE, "Error while getting owner name of " + this, fex);
    }
    return null;
  }
View Full Code Here

Examples of org.uberfire.security.auth.Principal

    public void challengeClient( final SecurityContext context ) {
    }

    public Credential buildCredential( final SecurityContext context ) {
        final HttpSecurityContext httpSecurityContext = checkInstanceOf( "context", context, HttpSecurityContext.class );
        final Principal principal = cookieStorage.load( httpSecurityContext );

        if ( principal == null ) {
            return null;
        }

        return new RememberMeCredential( TRUE.toString(), principal.getName() );
    }
View Full Code Here

Examples of org.wicketstuff.security.hive.authorization.Principal

      reader = (BufferedReader)input;
    else
      reader = new BufferedReader(input);

    boolean inPrincipalBlock = false;
    Principal principal = null;
    Set<Permission> permissions = null;
    currentLineNr = 0;
    String line = reader.readLine();
    while (line != null)
    {
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.