Examples of Authority


Examples of ch.entwine.weblounge.common.security.Authority

      // Check for multiple authorities
      StringTokenizer tok = new StringTokenizer(require, " ,;");
      while (tok.hasMoreTokens()) {
        String authorityId = tok.nextToken();
        Authority authority = new AuthorityImpl(resolveAuthorityTypeShortcut(type), authorityId);
        allow(permission, authority);
      }

    }
  }
View Full Code Here

Examples of com.evasion.entity.security.Authority

        updateUser(u.getUser());
        return em.merge(u);
    }

    public Authority findOrCreateAdminAuthority() {
        Authority auth = authDAO.findByAuthorityName("ROLE_ADMIN");
        if (auth == null) {
            auth = new Authority("ROLE_ADMIN");
            authDAO.persist(auth);
        }
        return auth;
    }
View Full Code Here

Examples of com.gtp.domain.Authority

  @Override
  public List<ConfigAttribute> getAttributes(Object object) {
    FilterInvocation fi = (FilterInvocation) object;
    String url = fi.getRequestUrl();
    List<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>();
    Authority authory = null;
    if (url.contains(".xhmtl") || url.contains(".jsf"))
      authory = authoryDao.findByUrl(url);
    if (authory != null)
      attributes.add(new SecurityConfig(authory.getName()));
    else {
      attributes.add(new SecurityConfig("authory_anonymous"));
    }

    return attributes;
View Full Code Here

Examples of com.mycompany.myapp.domain.Authority

    }

    @Test
    public void testGetExistingAccount() throws Exception {
        Set<Authority> authorities = new HashSet<>();
        Authority authority = new Authority();
        authority.setName(AuthoritiesConstants.ADMIN);
        authorities.add(authority);

        User user = new User();
        user.setLogin("test");
        user.setFirstName("john");
View Full Code Here

Examples of com.opengamma.security.user.Authority

  public void basicPermissionCheck() {
    Set<UserGroup> userGroups = new HashSet<UserGroup>();

    UserGroup group1 = new UserGroup(0L, "group1");
    group1.getAuthorities().add(new Authority(0L, "LiveData/Bloomberg/Equity/**")); // ** -> all subpaths OK
    group1.getAuthorities().add(new Authority(1L, "LiveData/Bloomberg/Bond/*")); // * -> only 1 level of subpath OK
    userGroups.add(group1);
   
    UserGroup group2 = new UserGroup(1L, "group2");
    group2.getAuthorities().add(new Authority(2L, "LiveData/Reuters/Equity/**"));
    userGroups.add(group2);
   
    User user = new User(null,
        "john",
        "pw",
View Full Code Here

Examples of com.tll.model.Authority

    // set the user as un-locked by default
    user.setLocked(false);

    // set the role as user by default
    Authority userAuth =
        dao.load(new NameKey<Authority>(Authority.class, AuthorityRoles.ROLE_USER.toString(),
            Authority.FIELDNAME_AUTHORITY));
    user.addAuthority(userAuth);

    persist(user);
View Full Code Here

Examples of dummyCA.Authority

        byte[] data = new byte[request.getContentLength()];
        is.read(data, 0, data.length);

        Authority.init(this);
        Authority CA = new Authority();

        if (! CA.createCertificate(data)) {
            Status = CA.getStatus();
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                    Status);
            return;
        }

        Status = "<pre><code>" + CA.getStatus() + "</pre></code>";

        response.setContentType("application/octet-stream");
        OutputStream os = response.getOutputStream();

        data = CA.getPkiPath();
        os.write((byte) (data.length >> 8));
        os.write((byte) data.length);
        os.write(data);

        data = CA.getIssuerAndSerialNumber();
        os.write((byte) (data.length >> 8));
        os.write((byte) data.length);
        os.write(data);

        os.flush();
View Full Code Here

Examples of fr.openwide.core.jpa.security.business.authority.model.Authority

 
  public List<Authority> getPublicAuthorities() {
    List<Authority> publicAuthorities = new ArrayList<Authority>();
   
    for (String authorityName : PUBLIC_AUTHORITIES) {
      Authority authority = authorityService.getByName(authorityName);
      if (authority != null) {
        publicAuthorities.add(authority);
      }
    }
   
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue21.Authority

    user2Id = getSession().save(user2);

    group.addUser(user1);
    group.addUser(user2);

    Authority adminAuthority = new Authority("admin");
    adminAuthotityId = getSession().save(adminAuthority);

    DefaultMapperFactory.Builder builder = new DefaultMapperFactory.Builder();
    builder.unenhanceStrategy(new HibernateUnenhanceStrategy());
    builder.compilerStrategy(new EclipseJdtCompilerStrategy());
View Full Code Here

Examples of nl.oneday.data.domain.users.Authority

      user = new User();
      user.setUsername(userName);
      user.setFirstName(firstName);
      user.setLastName(lastName);
      user.setPassword(passwordServiceImpl.getMD5EncodedPasswordHash(password));
      Authority authority = new Authority();

      List<Authority> authorities = new ArrayList<Authority>();
      user.setAuthorities(authorities);
      try {
        user = userRepository.saveAndFlush(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.