Examples of SimpleCredentials


Examples of javax.jcr.SimpleCredentials

        final MongoMK mk1 = mks.get(0);
        final MongoMK mk2 = mks.get(1);
        Repository r1 = new Jcr(mk1).createRepository();
        Repository r2 = new Jcr(mk2).createRepository();

        Session s1 = r1.login(new SimpleCredentials("admin", "admin".toCharArray()));
        Session s2 = r2.login(new SimpleCredentials("admin", "admin".toCharArray()));

        Node root1 = s1.getRootNode().addNode("session-1");
        s1.save();
        Node root2 = s2.getRootNode().addNode("session-2");
        s2.save();
View Full Code Here

Examples of javax.jcr.SimpleCredentials

        MongoConnection con = createConnection();
        MongoMK mk = new MongoMK.Builder()
                .setMongoDB(con.getDB())
                .setClusterId(1).open();
        Session session = new Jcr(mk).createRepository().login(
                new SimpleCredentials("admin", "admin".toCharArray()));
        session.logout();
        mk.dispose(); // closes connection as well
    }
View Full Code Here

Examples of org.menacheri.jetserver.util.SimpleCredentials

        .getChannel().getId(), CHANNEL_COUNTER.incrementAndGet());
  }
 
  public Player lookupPlayer(final ChannelBuffer buffer, final Channel channel)
  {
    Credentials credentials = new SimpleCredentials(buffer);
    Player player = lookupService.playerLookup(credentials);
    if(null == player){
      LOG.error("Invalid credentials provided by user: {}",credentials);
    }
    return player;
View Full Code Here

Examples of slash.navigation.rest.SimpleCredentials

public class CategoryIT extends RouteCatalogClientBase {

    private Post createCategoryFromFile(String fileName,
                                        String authenticationUserName, String authenticationPassword) throws IOException {
        Post request = new Post(CATEGORIES_URL, new SimpleCredentials(authenticationUserName, authenticationPassword));
        request.addFile("file", new File(TEST_PATH + fileName));
        return request;
    }
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.