Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for SecureRandom (0.29 seconds)

  1. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

     * Clients may request multiple sessions.
     */
    public final class OAuthSessionFactory extends Dispatcher implements Closeable {
      private final SecureRandom secureRandom = new SecureRandom();
    
      private final SlackApi slackApi;
      private MockWebServer mockWebServer;
    
      /** Guarded by this. */
      private final Map<ByteString, Listener> listeners = new LinkedHashMap<>();
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 3.8K bytes
    - Click Count (1)
  2. 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() {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/util/CryptoTest.java

            // Given
            int length = 16;
    
            // When
            byte[] random1 = new byte[length];
            byte[] random2 = new byte[length];
            SecureRandom.getInstanceStrong().nextBytes(random1);
            SecureRandom.getInstanceStrong().nextBytes(random2);
    
            // Then
            assertNotNull(random1);
            assertNotNull(random2);
            assertEquals(length, random1.length);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (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;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.6K bytes
    - Click Count (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;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 00:16:17 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.security.GeneralSecurityException;
    import java.security.KeyStore;
    import java.security.SecureRandom;
    import javax.net.ssl.KeyManagerFactory;
    import javax.net.ssl.SSLContext;
    import javax.net.ssl.TrustManagerFactory;
    import okhttp3.mockwebserver.Dispatcher;
    import okhttp3.mockwebserver.MockResponse;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

     * limitations under the License.
     */
    @file:Suppress("Since15")
    
    package okhttp3.recipes.kt
    
    import java.io.IOException
    import java.security.KeyStore
    import java.security.SecureRandom
    import java.security.Security
    import javax.net.ssl.KeyManagerFactory
    import javax.net.ssl.KeyStoreBuilderParameters
    import javax.net.ssl.SSLContext
    import javax.net.ssl.X509ExtendedKeyManager
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package okhttp3.tls
    
    import java.security.KeyStoreException
    import java.security.SecureRandom
    import java.security.cert.X509Certificate
    import java.util.Collections
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.KeyManager
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocketFactory
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/resources/fips_java_oracle.security

    security.provider.2=org.bouncycastle.jsse.provider.BouncyCastleJsseProvider fips:BCFIPS
    security.provider.3=SUN
    security.provider.4=SunJGSS
    security.provider.5=SunRsaSign
    securerandom.source=file:/dev/urandom
    securerandom.strongAlgorithms=NativePRNGBlocking:SUN,DRBG:SUN
    securerandom.drbg.config=
    login.configuration.provider=sun.security.provider.ConfigFile
    policy.provider=sun.security.provider.PolicyFile
    policy.expandProperties=true
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.2K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/resources/fips_java.security

    security.provider.2=org.bouncycastle.jsse.provider.BouncyCastleJsseProvider fips:BCFIPS
    security.provider.3=SUN
    security.provider.4=SunJGSS
    securerandom.source=file:/dev/urandom
    securerandom.strongAlgorithms=NativePRNGBlocking:SUN,DRBG:SUN
    securerandom.drbg.config=
    login.configuration.provider=sun.security.provider.ConfigFile
    policy.provider=sun.security.provider.PolicyFile
    policy.expandProperties=true
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.1K bytes
    - Click Count (0)
Back to Top