Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 74 for catch (0.11 sec)

  1. 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)
  2. src/main/java/jcifs/smb1/smb1/NtlmContext.java

                    break;
                } else if (id == id0) {
                    try {
                        return new String(type2token, ri, len, SmbConstants.UNI_ENCODING);
                    } catch (java.io.UnsupportedEncodingException uee) {
                        break;
                    }
                }
                ri += len;
            }
    
            return null;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            byte[] descr;
    
            try {
                descr = DESCR.getBytes( "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            writeInt2( NET_SHARE_ENUM, dst, dstIndex );
            dstIndex += 2;
            System.arraycopy( descr, 0, dst, dstIndex, descr.length );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java

            try {
                try ( ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token)) ) {
                    authSequence = ASN1Util.as(ASN1Sequence.class, stream);
                }
            }
            catch ( IOException e ) {
                throw new PACDecodingException("Malformed kerberos ticket", e);
            }
    
            this.authorizations = new ArrayList<>();
            Enumeration<?> authElements = authSequence.getObjects();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

            for ( String dialect : this.dialects ) {
                bos.write(0x02);
                try {
                    bos.write(Strings.getASCIIBytes(dialect));
                }
                catch ( IOException e ) {
                    throw new RuntimeCIFSException(e);
                }
                bos.write(0x0);
            }
    
            System.arraycopy(bos.toByteArray(), 0, dst, dstIndex, bos.size());
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/Crypto.java

            }
            catch ( NoSuchAlgorithmException e ) {
                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
    
        /**
         * 
         * @return MD5 digest
         */
        public static MessageDigest getMD5 () {
            try {
                return MessageDigest.getInstance("MD5");
            }
            catch ( NoSuchAlgorithmException e ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SecurityBlob.java

                for ( int i = 0; i < this.b.length; i++ ) {
                    if ( this.b[ i ] != t.b[ i ] ) {
                        return false;
                    }
                }
                return true;
            }
            catch ( Throwable e ) {
                return false;
            }
        }
    
    
        /*
         * (non-Javadoc)
         * 
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode () {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/Config.java

            String s = props.getProperty(key);
            if ( s != null ) {
                try {
                    def = Integer.parseInt(s);
                }
                catch ( NumberFormatException nfe ) {
                    log.error("Not a number", nfe);
                }
            }
            return def;
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            Encdec.enc_uint32le(0, buf, i); i += 4;
            Encdec.enc_uint32le(len + 1, buf, i); i += 4;
            try {
                System.arraycopy(s.getBytes("UTF-16LE"), 0, buf, i, len * 2);
            } catch( UnsupportedEncodingException uee ) {
            }
            i += len * 2;
            buf[i++] = (byte)'\0';
            buf[i++] = (byte)'\0';
            advance(i - index);
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

            int start = bufferIndex;
    
            int len = readStringLength(buffer, bufferIndex, 32);
            try {
                this.service = new String(buffer, bufferIndex, len, "ASCII");
            }
            catch ( UnsupportedEncodingException uee ) {
                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
            /*
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
Back to top