Examples of SecurityService


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

    SiteDirectory directoryB = EasyMock.createNiceMock(SiteDirectory.class);
    EasyMock.expect(directoryB.getIdentifier()).andReturn(site.getIdentifier()).anyTimes();
    EasyMock.expect(directoryB.loadUser((String) EasyMock.anyObject(), (Site) EasyMock.anyObject())).andReturn(johnAlterEgo).anyTimes();
    EasyMock.replay(directoryB);

    SecurityService securityService = EasyMock.createNiceMock(SecurityService.class);
    EasyMock.expect(securityService.getSite()).andReturn(site).anyTimes();
    EasyMock.replay(securityService);

    directory = new DirectoryServiceImpl();
    directory.setSecurityService(securityService);
    directory.addDirectoryProvider(directoryA);
View Full Code Here

Examples of com.caucho.cloud.security.SecurityService

        String signature = _authManager.sign(serverAlgorithm,
                                             uid,
                                             serverNonce,
                                             password);

        SecurityService security = SecurityService.getCurrent();
       
        if ("".equals(uid))
          credentials = new SignedCredentials(uid, serverNonce, signature);
        else
          credentials = new DigestCredentials(uid, serverNonce, signature);
View Full Code Here

Examples of com.caucho.cloud.security.SecurityService

          throw new BamException(L.l("{0} server signature does not match",
                                      this));

        String signature = _authManager.sign(algorithm, uid, serverNonce, password);

        SecurityService security = SecurityService.getCurrent();
       
        if ("".equals(uid))
          credentials = new SignedCredentials(uid, serverNonce, signature);
        else {
          credentials = security.createCredentials(algorithm,
                                                   uid, password,
                                                   serverNonce);
        }
      }
View Full Code Here

Examples of com.caucho.cloud.security.SecurityService

 
  public void setResinSystemAuthKey(String digest)
  {
    _resinSystemKey = digest;
   
    SecurityService security = SecurityService.getCurrent();
   
    if (security != null)
      security.setSignatureSecret(digest);
  }
View Full Code Here

Examples of com.caucho.cloud.security.SecurityService

   * Sets the resin system key
   */
  @Configurable
  public void setResinSystemAuthKey(String key)
  {
    SecurityService security = SecurityService.getCurrent();

    security.setSignatureSecret(key);
  }
View Full Code Here

Examples of com.caucho.cloud.security.SecurityService

   * Sets the resin system key
   */
  @Configurable
  public void setResinSystemAuthKey(String key)
  {
    SecurityService security = SecurityService.getCurrent();
    security.setSignatureSecret(key);
  }
View Full Code Here

Examples of com.foundationdb.server.service.security.SecurityService

            .bindAndRequire(RestService.class, RestServiceImpl.class);
    }

    @Before
    public void setUp() {
        SecurityService securityService = securityService();
        securityService.addRole("rest-user");
        securityService.addUser("user1", "password", Arrays.asList("rest-user"));
    }
View Full Code Here

Examples of com.streamreduce.core.service.SecurityService

        User anotherUser = new User.Builder().username("justinc@toolband.com").fullname("Justin Chancellor").password("bass")
                .alias("justinc").account(testAccount).build();
        userService.createUser(anotherUser);

        SecurityService mockSecurityService = mock(SecurityService.class);
        when(mockSecurityService.getCurrentUser()).thenReturn(anotherUser);

        userResource.securityService = mockSecurityService;

        JSONObject updateUserJson = new JSONObject();
        updateUserJson.put("fullname", "justinc");
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.SecurityService

        ServerContext serverContext = ApplicationServer.getServerContext();
        ElementProperty[] elementProps = null;
        if (serverContext != null) {
            ConfigContext configContext = serverContext.getConfigContext();
            if (configContext != null) {
                SecurityService securityService =
                    ServerBeansFactory.getSecurityServiceBean(configContext);
                if (securityService != null) {
                    elementProps = securityService.getElementProperty();
                }
            }
        } else {
            String domainXMLLocation = System.getProperty(
                    SystemPropertyConstants.INSTANCE_ROOT_PROPERTY) +
View Full Code Here

Examples of com.sun.enterprise.iiop.security.SecurityService

            ServerConnectionInterceptor sci =
                new ServerConnectionInterceptor(2);
            info.add_server_request_interceptor(sci);
            info.add_server_request_interceptor(sreq);

      SecurityService ss = new SecurityServiceImpl();
      Csiv2Manager.setSecurityService(ss);


      // register JTS interceptors
      // first get hold of PICurrent to allocate a slot for JTS service.
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.