Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for New (0.15 sec)

  1. src/test/java/jcifs/tests/EnumTest.java

                try ( SmbFile a = new SmbFile(f, "a.txt");
                      SmbFile b = new SmbFile(f, "b.txt");
                      SmbFile c = new SmbFile(f, "c.bar") ) {
    
                    a.createNewFile();
                    b.createNewFile();
                    c.createNewFile();
    
                    SmbFile[] files = f.listFiles(new DosFileFilter("*.txt", -1));
                    assertNotNull(files);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                MsrpcShareEnum rpc = new MsrpcShareEnum(loc.getServer());
                handle.sendrecv(rpc);
                if ( rpc.retval != 0 ) {
                    throw new SmbException(rpc.retval, true);
                }
                return rpc.getEntries();
            }
        }
    
    
        static FileEntry[] doNetShareEnum ( SmbTreeHandleImpl th ) throws CIFSException {
            SmbComTransaction req = new NetShareEnum(th.getConfig());
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbSession.java

                ssn.getSmbTree( LOGON_SHARE, null ).treeConnect( null, null );
            }
            return new NtlmChallenge( trans.server.encryptionKey, dc );
        }
        public static NtlmChallenge getChallengeForDomain()
                    throws SmbException, UnknownHostException {
            if( DOMAIN == null ) {
                throw new SmbException( "A domain was not specified" );
            }
    synchronized (DOMAIN) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                        hmac.update(sessionNonce);
                        byte[] ntlm2SessionKey = hmac.digest();
    
                        if ((getFlags() & NTLMSSP_NEGOTIATE_KEY_EXCH) != 0) {
                            masterKey = new byte[16];
                            RANDOM.nextBytes(masterKey);
    
                            byte[] exchangedKey = new byte[16];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        this.s = new DfsInfo1[_ss];
                    }
                    _src = _src.derive(_si);
                    for ( int _i = 0; _i < _ss; _i++ ) {
                        if ( this.s[ _i ] == null ) {
                            this.s[ _i ] = new DfsInfo1();
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:40:13 GMT 2019
    - 16.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/Kerb5Authenticator.java

        private int contextLifetime = GSSContext.DEFAULT_LIFETIME;
        private boolean canFallback = false;
        private boolean forceFallback;
    
        static {
            PREFERRED_MECHS.add(new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"));
            PREFERRED_MECHS.add(new ASN1ObjectIdentifier("1.2.840.48018.1.2.2"));
        }
    
    
        /**
         * Construct a <code>Kerb5Authenticator</code> object with <code>Subject</code>
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/Type2Message.java

            byte[] domain = new byte[0];
            if ( domainStr != null ) {
                try {
                    domain = domainStr.getBytes(UNI_ENCODING);
                }
                catch ( IOException ex ) {
                    log.debug("Failed to get domain bytes", ex);
                }
            }
            int domainLength = domain.length;
            byte[] server = new byte[0];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NtlmHttpFilter.java

                if ( this.realm == null )
                    this.realm = "jCIFS";
    
                this.transportContext = new BaseContext(new PropertyConfiguration(p));
            }
            catch ( CIFSException ex ) {
                throw new ServletException("Failed to initialize CIFS context");
            }
        }
    
    
        @Override
        public void destroy () {}
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            byte[] p14 = new byte[14];
            byte[] p21 = new byte[21];
            byte[] p24 = new byte[24];
            byte[] passwordBytes;
            try {
                passwordBytes = password.toUpperCase().getBytes( ServerMessageBlock.OEM_ENCODING );
            } catch( UnsupportedEncodingException uee ) {
                throw new RuntimeException("Try setting jcifs.smb1.encoding=US-ASCII", uee);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            }
            catch ( GeneralSecurityException e ) {
                throw new GeneralSecurityException("Checksum failed while decrypting.");
            }
            byte[] ivec = new byte[8];
            IvParameterSpec params = new IvParameterSpec(ivec);
    
            SecretKeySpec skSpec = new SecretKeySpec(key.getEncoded(), "DES");
            SecretKey sk = skSpec;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
Back to top