Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 346 for isSupported (0.23 sec)

  1. src/test/java/jcifs/smb/SSPContextTest.java

                assertTrue(ctx.isMICAvailable(), "MIC available when established + integrity");
    
                assertTrue(ctx.isSupported(mech1), "mech1 supported");
                assertTrue(ctx.isPreferredMech(mech1), "first supported is preferred");
                assertArrayEquals(new ASN1ObjectIdentifier[] { mech1, mech2 }, ctx.getSupportedMechs(), "supported mechs");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

        if (level == WARN) {
          Log.w(Tag, message, t)
        } else {
          Log.i(Tag, message, t)
        }
      }
    
      companion object {
        val isSupported: Boolean = isAndroid && Build.VERSION.SDK_INT >= 29
    
        fun buildIfSupported(): Platform? = if (isSupported) Android10Platform() else null
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/Kerb5ContextTest.java

        }
    
        @ParameterizedTest
        @MethodSource("supportedMechs")
        @DisplayName("isSupported returns true for supported OIDs")
        void isSupported_supportedOids(ASN1ObjectIdentifier oid) {
            assertTrue(ctx.isSupported(oid));
            assertTrue(ctx.isPreferredMech(oid));
        }
    
        @Test
        @DisplayName("isSupported returns false for null/unknown OIDs")
        void isSupported_unknownOrNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SpnegoContextTest.java

        void testGetSupportedMechs() {
            SpnegoContext ctx = newContext();
            ASN1ObjectIdentifier[] supported = ctx.getSupportedMechs();
            assertNotNull(supported);
            assertEquals(1, supported.length);
            assertEquals(new ASN1ObjectIdentifier("1.3.6.1.5.5.2"), supported[0]);
        }
    
        @Test
        @DisplayName("isSupported always returns false (prevents nesting)")
        void testIsSupportedAlwaysFalse() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SpnegoContext.java

                // only use token if the optimistic mechanism is supported
                if (this.mechContext.isSupported(prefMech)) {
                    inputToken = tinit.getMechanismToken();
                } else {
                    ASN1ObjectIdentifier found = null;
                    for (final ASN1ObjectIdentifier mech : rm) {
                        if (this.mechContext.isSupported(mech)) {
                            found = mech;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/Kerb5Context.java

            this.gssContext.requestCredDeleg(true);
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @Override
        public boolean isSupported(ASN1ObjectIdentifier mechanism) {
            return KRB5_MECH_OID.equals(mechanism) || KRB5_MS_MECH_OID.equals(mechanism);
        }
    
        /**
         * {@inheritDoc}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb/NtlmContext.java

        @Override
        public int getFlags() {
            return 0;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @Override
        public boolean isSupported(final ASN1ObjectIdentifier mechanism) {
            return NTLMSSP_OID.equals(mechanism);
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt

      override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    
        val client = OkHttpClient()
    
        // Ensure we are compiling against the right variant
        println(AndroidPlatform.isSupported)
    
        val url = "https://github.com/square/okhttp".toHttpUrl()
        println(url.topPrivateDomain())
    
        client.newCall(Request(url)).enqueue(
          object : Callback {
            override fun onFailure(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Aug 19 08:10:39 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SSPContext.java

         */
        void dispose() throws CIFSException;
    
        /**
         * Checks whether the specified security mechanism is supported.
         * @param mechanism the security mechanism OID to check
         * @return whether the specified mechanism is supported
         */
        boolean isSupported(ASN1ObjectIdentifier mechanism);
    
        /**
         * Checks whether the specified mechanism is the preferred mechanism.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

                }
                final Matcher matcher = getEncodingPattern().matcher(head);
                if (matcher.find()) {
                    final String enc = matcher.group(1);
                    if (Charset.isSupported(enc)) {
                        return enc;
                    }
                }
            } catch (final Exception e) {
                if (logger.isInfoEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top