Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 2,652 for throwIt (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java

         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException {
            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 4 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return bufferIndex - start;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    
    class Authenticate {
      private val client =
        OkHttpClient.Builder()
          .authenticator(
            object : Authenticator {
              @Throws(IOException::class)
              override fun authenticate(
                route: Route?,
                response: Response,
              ): Request? {
                if (response.request.header("Authorization") != null) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/OplockTests.java

        }
    
    
        @Parameters ( name = "{0}" )
        public static Collection<Object> configs () {
            return getConfigs("smb1", "smb2", "smb30", "smb31");
        }
    
    
        @Test
        public void testOpenOplocked () throws UnknownHostException, IOException {
            CIFSContext c = getContext();
            c = withTestNTLMCredentials(c);
            try ( SmbTransportInternal trans = c.getTransportPool().getSmbTransport(c, getTestServer(), 0, false, true)
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/HMACT64.java

                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
            this.opad = hmac.opad;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java

    @Named("default")
    @Singleton
    public class DefaultToolchainsBuilder implements ToolchainsBuilder {
        private final Logger logger = LoggerFactory.getLogger(getClass());
    
        public PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException {
            PersistedToolchains toolchains = null;
    
            if (userToolchainsFile != null && userToolchainsFile.isFile()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       */
      @Test
      public void testNulls() throws Exception {
        for (Class<?> classToTest : findClassesToTest(loadClassesInPackage(), NULL_TEST_METHOD_NAMES)) {
          if (classToTest.getSimpleName().equals("ReflectionFreeAssertThrows")) {
            /*
             * These classes handle null properly but throw IllegalArgumentException for the default
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okio.Buffer
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /** Serves requests from the cache and writes responses to the cache. */
    class CacheInterceptor(internal val cache: Cache?) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val call = chain.call()
        val cacheCandidate = cache?.get(chain.request().requestForCache())
    
        val now = System.currentTimeMillis()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Mar 22 07:09:21 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmUtil.java

         * @param passwordHash
         * @param serverChallenge
         * @param clientChallenge
         * @return the calculated response
         * @throws GeneralSecurityException
         */
        public static byte[] getNTLM2Response ( byte[] passwordHash, byte[] serverChallenge, byte[] clientChallenge ) throws GeneralSecurityException {
            byte[] sessionHash = new byte[8];
    
            MessageDigest md5 = Crypto.getMD5();;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      /** @serialData the ConcurrentMap of elements and their counts. */
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeObject(countMap);
      }
    
      @J2ktIncompatible // serialization
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataTreeNode.java

            return md == null ? "no metadata" : md.toString();
        }
    
        // ------------------------------------------------------------------
        public String graphHash() throws MetadataResolutionException {
            if (md == null) {
                throw new MetadataResolutionException(
                        "treenode without metadata, parent: " + (parent == null ? "null" : parent.toString()));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top