Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SecureRandom (0.18 sec)

  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<>();
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K 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: Thu Sep 04 12:52:25 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (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;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jan 02 02:50:44 UTC 2019
    - 4.7K bytes
    - Viewed (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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 4.2K bytes
    - Viewed (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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top