Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 139 for catch (0.21 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                    // encrypted
                    try {
                        this.password = pwAuth.getAnsiHash(this.ctx, this.server.encryptionKey);
                    }
                    catch ( GeneralSecurityException e ) {
                        throw new RuntimeCIFSException("Failed to encrypt password", e);
                    }
                    this.passwordLength = this.password.length;
                }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Dfs.java

                    int _klen = _key.length();
                    boolean match = false;
    
                    if (_klen == key.length()) {
                        match = _key.equals(key);
                    } else if (_klen < key.length()) {
                        match = _key.regionMatches(0, key, 0, _klen) && key.charAt(_klen) == '\\';
                    }
    
                    if (match)
                        dr = (DfsReferral)referrals.map.get(_key);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    this.writeSize = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70);
                }
    
                this.fp = 0L;
            }
            catch ( CIFSException e ) {
                throw SmbException.wrap(e);
            }
        }
    
    
        /**
         * @return
         * @throws SmbException
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (1)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                createResp = th.send(create);
            }
            catch ( SmbException e ) {
                Smb2CreateResponse cr = create.getResponse();
                if ( cr != null && cr.isReceived() && cr.getStatus() == NtStatus.NT_STATUS_OK ) {
                    try {
                        th.send(new Smb2CloseRequest(th.getConfig(), cr.getFileId()));
                    }
                    catch ( SmbException e2 ) {
                        e.addSuppressed(e2);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 16:15:08 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/KerberosTest.java

                try ( SmbResource r = f.resolve("test") ) {
                    r.exists();
                }
            }
            catch ( SmbUnsupportedOperationException e ) {
                Assume.assumeTrue("Using short names", false);
            }
            catch ( SmbException e ) {
                if ( ! ( e.getCause() instanceof GSSException ) ) {
                    throw e;
                }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                                this.type = SmbConstants.TYPE_WORKGROUP;
                                return this.type;
                            }
                        }
                    }
                    catch ( CIFSException e ) {
                        if ( ! ( e.getCause() instanceof UnknownHostException ) ) {
                            throw e;
                        }
                        log.debug("Unknown host", e);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpFilter.java

                        ssn.treeConnectLogon();
                    }
                }
                return new NtlmChallenge(trans.getServerEncryptionKey(), dc);
            }
            catch ( SmbException e ) {
                throw e;
            }
            catch ( IOException e ) {
                throw new SmbException("Connection failed", e);
            }
        }
    
    
        /**
         * @return
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java

            return 0;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            byte[] dialects;
            try {
                dialects = DIALECTS.getBytes( "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
            System.arraycopy( dialects, 0, dst, dstIndex, dialects.length );
            return dialects.length;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SigningDigest.java

        private int updates;
        private int signSequence;
    
        public SigningDigest(byte[] macSigningKey, boolean bypass) throws SmbException {
            try {
                digest = MessageDigest.getInstance("MD5");
            } catch (NoSuchAlgorithmException ex) {
                if( log.level > 0 )
                    ex.printStackTrace( log );
                throw new SmbException( "MD5", ex );
            }
    
            this.macSigningKey = macSigningKey;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            int size = readUnsignedShort();
            byte[] b = new byte[size];
            read( b, 0, size );
            try {
                return Encdec.dec_utf8( b, 0, size );
            } catch( IOException ioe ) {
                throw new SmbException( "", ioe );
            }
        }
        public final void writeBoolean( boolean v ) throws SmbException {
            tmp[0] = (byte)(v ? 1 : 0);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
Back to top