Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SecureRandom (0.16 sec)

  1. src/main/java/org/codelibs/core/net/UuidUtil.java

        }
    
        private static final byte[] DEFAULT_ADDRESS = new byte[] { (byte) 127, (byte) 0, (byte) 0, (byte) 1 };
    
        private static final SecureRandom RANDOM = new SecureRandom();
    
        private static final String BASE = StringUtil.toHex(getAddress()) + StringUtil.toHex(System.identityHashCode(RANDOM));
    
        /**
         * Creates a UUID.
         *
         * @return the UUID string
         */
        public static String create() {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/PreauthIntegrityService.java

         */
        public PreauthIntegrityService(SecureRandom secureRandom, int hashAlgorithm, boolean enforceIntegrity) {
            this.secureRandom = secureRandom != null ? secureRandom : new SecureRandom();
            this.selectedHashAlgorithm = hashAlgorithm;
            this.enforceIntegrity = enforceIntegrity;
        }
    
        /**
         * Generates a new preauth salt for SMB 3.1.1 negotiation.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SecureCredentialStorage.java

        private static final int GCM_IV_SIZE = 12;
        private static final int SALT_SIZE = 32;
        private static final int PBKDF2_ITERATIONS = 100_000;
    
        private final SecureRandom secureRandom = new SecureRandom();
        private volatile SecretKey masterKey;
        private volatile byte[] salt;
        private volatile boolean destroyed = false;
    
        /**
         * Initialize secure credential storage with a master password
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.helper;
    
    import java.security.SecureRandom;
    import java.util.Random;
    
    import org.apache.commons.lang3.RandomStringUtils;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.exception.InvalidAccessTokenException;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java

     */
    package jcifs.internal.smb2.lease;
    
    import java.security.SecureRandom;
    import java.util.Arrays;
    
    /**
     * SMB2 Lease Key
     *
     * Represents a 16-byte lease key used to identify leases in SMB2/SMB3
     * MS-SMB2 2.2.13.2.8
     */
    public class Smb2LeaseKey {
    
        private final byte[] key;
        private static final SecureRandom RANDOM = new SecureRandom();
        private static final int LEASE_KEY_SIZE = 16;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

        private final DialectVersion dialect;
        private byte[] encryptionKey;
        private byte[] decryptionKey;
        private final AtomicLong nonceCounter = new AtomicLong(0);
        private final SecureRandom secureRandom = new SecureRandom();
    
        // Secure key management
        private SecureKeyManager keyManager;
        private String sessionId;
        private volatile boolean closed = false;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/DelegatingConfigurationTest.java

        @Test
        @DisplayName("Random access should delegate to underlying configuration")
        void testRandomDelegation() {
            // Given
            SecureRandom expectedRandom = new SecureRandom();
            when(mockDelegate.getRandom()).thenReturn(expectedRandom);
    
            // When
            SecureRandom result = delegatingConfig.getRandom();
    
            // Then
            assertSame(expectedRandom, result, "Should return delegated random");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureKeyManager.java

        private final Map<String, SecretKey> sessionKeys = new ConcurrentHashMap<>();
        private final Map<String, byte[]> rawKeys = new ConcurrentHashMap<>();
        private final SecureRandom secureRandom = new SecureRandom();
        private KeyStore keyStore;
        private char[] keyStorePassword;
        private volatile boolean closed = false;
    
        /**
         * Create a secure key manager without KeyStore
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. docs/smb3-features/01-smb3-lease-design.md

    ## 4. Data Structures
    
    ### 4.1 Lease Key Structure
    ```java
    package jcifs.internal.smb2.lease;
    
    import java.security.SecureRandom;
    import java.util.Arrays;
    
    public class Smb2LeaseKey {
        private final byte[] key;  // 16-byte lease key
        private static final SecureRandom random = new SecureRandom();
        
        public Smb2LeaseKey() {
            this.key = new byte[16];
            random.nextBytes(this.key);
        }
        
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

        private static final String DEFAULT_PASSWORD;
    
        private static final String DEFAULT_WORKSTATION;
    
        private static final int LM_COMPATIBILITY;
    
        private static final SecureRandom RANDOM = new SecureRandom();
    
        private byte[] lmResponse;
    
        private byte[] ntResponse;
    
        private String domain;
    
        private String user;
    
        private String workstation;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top