Examples of bind()

Examples of javax.naming.InitialContext.bind()


      MockDataSource ds = new MockDataSource(props);
      context.bind(JNDI_NAME, ds);
      assertNotNull(JNDI_NAME + " bound", context.lookup(JNDI_NAME));

      assertNotNull("Cache has a cache loader", cache.getCacheLoaderManager().getCacheLoader());
View Full Code Here

Examples of javax.naming.directory.DirContext.bind()

        try {
            Resource newResource = new Resource(resourceInputStream);
            if (exists) {
                resources.rebind(path, newResource);
            } else {
                resources.bind(path, newResource);
        } catch(NamingException e) {
            result = false;
View Full Code Here

Examples of javax.naming.directory.InitialDirContext.bind()

      env.put(Context.SECURITY_CREDENTIALS, ConfigMain.getParameter("ldap_adminPassword"));

      LdapUser dr = new LdapUser();
      dr.configure(inBenutzer, inPasswort, getNextUidNumber());
      DirContext ctx = new InitialDirContext(env);
      ctx.bind(getUserDN(inBenutzer), dr);
      Helper.setMeldung(null, Helper.getTranslation("ldapWritten") + " " + inBenutzer.getNachVorname(), "");
       * -------------------------------- check if HomeDir exists, else create it --------------------------------
View Full Code Here

Examples of javax.naming.ldap.LdapContext.bind()

        LdapContext sysRoot = getSystemContext( service );

        sysRoot.addToEnvironment( Context.STATE_FACTORIES, PersonStateFactory.class.getName() );
        Person p = new Person( "Rodriguez", "Mr. Kerberos", "noices", "555-1212", "sn=erodriguez", "committer" );
        sysRoot.bind( "sn=Rodriguez, ou=users", p );
        Attributes attrs = sysRoot.getAttributes( "sn=Rodriguez, ou=users" );
        assertEquals( "Rodriguez", attrs.get( "sn" ).get() );
        assertEquals( "Mr. Kerberos", attrs.get( "cn" ).get() );
        assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), StringTools.getBytesUtf8( "noices" ) ) );
        assertEquals( "555-1212", attrs.get( "telephonenumber" ).get() );
View Full Code Here

Examples of javax.net.ssl.SSLServerSocket.bind()

        SSLContext ctx = createSSLContext(options);
        SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket();
        String[] suits = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites);
        serverSocket.bind(new InetSocketAddress(address, port), 100);
        return serverSocket;

    /** Create a socket and connect */
    public static SSLSocket getSocket(EncryptionOptions options, InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
View Full Code Here

Examples of javax.net.ssl.SSLSocket.bind()

            if ( localPort < 0 )
                localPort = 0; // indicates "any"
            InetSocketAddress isa = new InetSocketAddress( localAddress, localPort );
            sslsock.bind( isa );

        sslsock.connect( remoteAddress, connTimeout );
        sslsock.setSoTimeout( soTimeout );
        return sslsock;
View Full Code Here

Examples of jcifs.dcerpc.DcerpcHandle.bind()

    DcerpcHandle dcerpcHandle = DcerpcHandle.getHandle(
      endpoint, ntlmPasswordAuthentication);



    byte[] clientChallenge = new byte[8];

View Full Code Here

Examples of jfun.yan.Binder.bind()

    final Binder binder = getMandatory();
    return new Binder(){
      public Creator bind(Object v)
      throws Throwable{
         return binder.bind(v);
      public String toString(){
        return binder.toString();
View Full Code Here

Examples of jfun.yan.Component.bind()

  public Component eval(){
    final Component c1 = getMandatory();
    checkMandatory("binder", binder);
    return followup?c1.followedBy(binder):c1.bind(binder);

View Full Code Here

Examples of jline.console.KeyMap.bind()

            historyFile = new FileHistory(new File(System.getProperty("user.home"), ".sqlcmd_history"));

            // Make Ctrl-D (EOF) exit if on an empty line, otherwise delete the next character.
            KeyMap keyMap = lineInputReader.getKeys();
            keyMap.bind(new Character(KeyMap.CTRL_D).toString(), new ActionListener() {
                public void actionPerformed(ActionEvent e)
                    CursorBuffer cursorBuffer = lineInputReader.getCursorBuffer();
                    if (cursorBuffer.length() == 0) {
View Full Code Here
Copyright © 2015 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.