Examples of createUser()


Examples of org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao.createUser()

      password = URLDecoder.decode( password.replace( "+", "%2B" ), "UTF-8" );
    } catch ( UnsupportedEncodingException e ) {
      password = user.getPassword();
      logger.warn( e.getMessage(), e );
    }
    roleDao.createUser( getTenant( tenantPath ), userName, password, "", new String[0] );
    return Response.ok().build();
  }

  /**
   * Create a new role with the provided information
View Full Code Here

Examples of org.pentaho.platform.security.userroledao.ws.IUserRoleWebService.createUser()

    user.setName( "test" );
    user.setEnabled( true );
    user.setPassword( "test" );
    user.setDescription( "testing" );
    try {
      service.createUser( user );
      Assert.fail();
    } catch ( UserRoleException e ) {
      Assert.assertTrue( "ERROR_0001 not found in " + e.getMessage(), e.getMessage().indexOf( "ERROR_0001" ) >= 0 );
    }
View Full Code Here

Examples of org.platformlayer.auth.UserDatabase.createUser()

      certificateChain = getContext().getCertificateChain(keystore, keystoreSecret, keyAlias);
    } else if (certPath != null) {
      certificateChain = getContext().loadCertificateChain(certPath);
    }

    OpsUser user = userRepository.createUser(username, password, certificateChain);
    return user;
  }

}
View Full Code Here

Examples of xregistry.impl.XregistryImpl.createUser()

        XregistryImpl registry = new XregistryImpl(globalContext);
       
        String user = "/C=US/O=National Center for Supercomputing Applications/CN=Hemapani Srinath Perera";
        registry.createGroup(user, "group1", "group1");
        registry.createGroup(user, "group2", "group1");
        registry.createUser(user, "user1", "User1");
        registry.createUser(user, "user2", "User1");
        registry.createUser(user, "user3", "User1");
       
        registry.addUsertoGroup(user, "group1", "user1");
        registry.addUsertoGroup(user, "group1", "user2");
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.