Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for init (0.13 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            SecretKeySpec dataKey = new SecretKeySpec(dataHmac, KerberosConstants.RC4_ALGORITHM);
    
            cipher = Cipher.getInstance(KerberosConstants.RC4_ALGORITHM);
            cipher.init(Cipher.DECRYPT_MODE, dataKey);
    
            int plainDataLength = data.length - KerberosConstants.CHECKSUM_SIZE;
            byte[] plainData = cipher.doFinal(data, KerberosConstants.CHECKSUM_SIZE, plainDataLength);
    
    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)
  2. src/test/java/jcifs/tests/PACTest.java

         * @param key
         * @throws GeneralSecurityException
         */
        private static void verifyAESMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
            verifyAESHMAC(usage, expect, key, Hex.decode(data));
        }
    
    
        private static void verifyArcfourHMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DfsImpl.java

            }
    
            key = key.toLowerCase(Locale.ROOT);
    
            Iterator<String> iter = refs.map.keySet().iterator();
            int searchLen = key.length();
            while ( iter.hasNext() ) {
                String cachedKey = iter.next();
                int cachedKeyLen = cachedKey.length();
    
                boolean match = false;
                if ( cachedKeyLen == searchLen ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/EnumTest.java

            int origBufferSize = ctx.getConfig().getMaximumBufferSize();
            // odd buffer size that does match the alignment
            int tryBufferSize = 1023;
            final int bufSize[] = new int[] {
                origBufferSize
            };
            ctx = withConfig(ctx, new DelegatingConfiguration(ctx.getConfig()) {
    
                @Override
                public int getMaximumBufferSize () {
    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)
  5. src/test/java/jcifs/tests/FileAttributesTest.java

                        // only have second precision
                        // there seems to be some random factor (adding one second)
                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
                        Assert.assertTrue("Have set time correctly", diff < 2);
                    }
                    else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/config/BaseConfiguration.java

        protected String netbiosHostname;
        protected int netbiosCachePolicy = 60 * 60 * 10;
        protected int netbiosSocketTimeout = 5000;
        protected int netbiosSendBufferSize = 576;
        protected int netbiosRevcBufferSize = 576;
        protected int netbiosRetryCount = 2;
        protected int netbiosRetryTimeout = 3000;
        protected String netbiosScope;
        protected int netbiosLocalPort = 0;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 20.4K bytes
    - Viewed (1)
  7. src/test/java/jcifs/tests/FileOperationsTest.java

                    }
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
        public void testCopyFile () throws IOException {
            int bufSize = 65536;
            long length = 4096 * 16;
            try ( SmbFile f = createTestFile() ) {
                try ( SmbFile d1 = createTestDirectory();
                      SmbFile t = new SmbFile(d1, makeRandomName()) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/Configuration.java

        int getReceiveBufferSize ();
    
    
        /**
         * 
         * Property <tt>jcifs.smb.client.snd_buf_size</tt> (int, default 65535)
         * 
         * @return send buffer size, in bytes
         */
        int getSendBufferSize ();
    
    
        /**
         * 
         * Property <tt>jcifs.smb.client.soTimeout</tt> (int, default 35000)
         * 
         * @return socket timeout, in milliseconds
         */
        int getSoTimeout ();
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 18K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
    
        /**
         * @param stackTrace
         * @return
         */
        private static StackTraceElement[] truncateTrace ( StackTraceElement[] stackTrace ) {
    
            int s = 2;
            int e = stackTrace.length;
    
            for ( int i = s; i < e; i++ ) {
                StackTraceElement se = stackTrace[ i ];
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 29.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

        private static final Logger log = LoggerFactory.getLogger(AndXServerMessageBlock.class);
    
        private static final int ANDX_COMMAND_OFFSET = 1;
        private static final int ANDX_RESERVED_OFFSET = 2;
        private static final int ANDX_OFFSET_OFFSET = 3;
    
        private byte andxCommand = (byte) 0xFF;
        private int andxOffset = 0;
    
        private ServerMessageBlock andx;
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
Back to top