Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getRandom (0.07 sec)

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

            long start = System.currentTimeMillis();
            byte buffer[] = new byte[bufSize];
            long p = 0;
            Random r = ReadWriteTest.getRandom();
            while ( p < length ) {
    
                int rs = Math.min(bufSize, (int) ( length - p ));
                int read = is.read(buffer, 0, rs);
                if ( read < 0 ) {
                    fail("Unexpected EOF");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type3Message.java

                }
                else {
                    // NTLM2 Session Response
    
                    byte[] clientChallenge = new byte[24];
                    tc.getConfig().getRandom().nextBytes(clientChallenge);
                    java.util.Arrays.fill(clientChallenge, 8, 24, (byte) 0x00);
    
                    byte[] ntlm2Response = NtlmUtil.getNTLM2Response(passwordHash, type2.getChallenge(), clientChallenge);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ReadWriteTest.java

        }
    
        private static final long SEED = ( new Random() ).nextLong();
    
    
        @Override
        @Before
        public void setUp () throws Exception {
            super.setUp();
        }
    
    
        static Random getRandom () {
            return new Random(SEED);
        }
    
    
        @Parameters ( name = "{0}" )
        public static Collection<Object> configs () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/config/DelegatingConfiguration.java

            this.delegate = delegate;
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getRandom()
         */
        @Override
        public SecureRandom getRandom () {
            return this.delegate.getRandom();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getMinimumVersion()
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            case 3:
            case 4:
            case 5:
                if ( this.clientChallenge == null ) {
                    this.clientChallenge = new byte[8];
                    tc.getConfig().getRandom().nextBytes(this.clientChallenge);
                }
                return NtlmUtil.getLMv2Response(this.domain, this.username, this.password, chlng, this.clientChallenge);
            default:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            if ( config.getMaximumVersion() != null && config.getMaximumVersion().atLeast(DialectVersion.SMB311) ) {
                byte[] salt = new byte[32];
                config.getRandom().nextBytes(salt);
                negoContexts.add(new PreauthIntegrityNegotiateContext(config, new int[] {
                    PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512
                }, salt));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

        public BaseConfiguration ( boolean initDefaults ) throws CIFSException {
            if ( initDefaults ) {
                this.initDefaults();
            }
        }
    
    
        @Override
        public SecureRandom getRandom () {
            return this.random;
        }
    
    
        @Override
        public String getNetbiosHostname () {
            return this.netbiosHostname;
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/Configuration.java

     * 
     * @author mbechler
     *
     */
    public interface Configuration {
    
        /**
         * 
         * @return random source to use
         */
        SecureRandom getRandom ();
    
    
        /**
         * 
         * 
         * Property <tt>jcifs.smb.client.dfs.ttl</tt> (int, default 300)
         * 
         * @return title to live, in seconds, for DFS cache entries
         */
        long getDfsTtl ();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

            if (StringUtil.isNotBlank(name)) {
                return request.getParameter(name);
            }
            return null;
        }
    
        public void setRandom(final Random random) {
            this.random = random;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top