Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 570 for Valid (0.02 sec)

  1. cmd/signature-v4-parser_test.go

    				strings.Join([]string{
    					// generating a valid credential.
    					generateCredentialStr(
    						"access key",
    						sampleTimeStr,
    						"us-west-1",
    						"s3",
    						"aws4_request"),
    					// valid SignedHeader.
    					"SignedHeaders=host;x-amz-content-sha256;x-amz-date",
    					// valid Signature field.
    					// a valid signature is of form "Signature="
    					"Signature=abcd",
    				}, ","),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // When
            boolean valid = response.isValid(mockContext, mockRequest);
    
            // Then
            assertTrue(valid);
            assertEquals(DialectVersion.SMB311, response.getSelectedDialect());
        }
    
        @Test
        @DisplayName("Should fail validation when not received")
        void testIsValidNotReceived() {
            // When
            boolean valid = response.isValid(mockContext, mockRequest);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            when(mockConfig.getPid()).thenReturn(12345);
    
            response = new SmbComSetInformationResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Constructor accepts valid config")
        void constructorValid() {
            assertDoesNotThrow(() -> new SmbComSetInformationResponse(mockConfig));
        }
    
        @Nested
        @DisplayName("writeParameterWordsWireFormat tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/AddressTest.java

            Address unwrapped = mockAddress.unwrap(Address.class);
            assertSame(mockAddress, unwrapped, "Should return same instance for supported type");
        }
    
        @Test
        @DisplayName("getHostName should return valid hostname or address")
        void testGetHostNameContract() {
            // Given
            String expectedHostName = "server.example.com";
            when(mockAddress.getHostName()).thenReturn(expectedHostName);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

        public boolean hasAccess(RdmaAccess access) {
            return accessFlags.contains(access);
        }
    
        /**
         * Check if memory region is still valid
         *
         * @return true if valid, false if invalidated
         */
        public boolean isValid() {
            return valid;
        }
    
        /**
         * Invalidate this memory region
         *
         * After invalidation, the region cannot be used for RDMA operations.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HostSpecifier.java

       * parsing fails. Always use this method in preference to {@link #fromValid(String)} for a
       * specifier that is not already known to be valid.
       *
       * @throws ParseException if the specifier is not valid.
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static HostSpecifier from(String specifier) throws ParseException {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/RequestHeader.java

         */
        public void setValue(final String value) {
            this.value = value;
        }
    
        /**
         * Checks if the request header is valid.
         * A header is considered valid if its name is not blank and its value is not null.
         * @return true if the header is valid, false otherwise.
         */
        public boolean isValid() {
            if (StringUtil.isBlank(name) || value == null) {
                return false;
            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt

      /** Lookup table for valid frame types. */
      private val FRAME_NAMES =
        arrayOf(
          "DATA",
          "HEADERS",
          "PRIORITY",
          "RST_STREAM",
          "SETTINGS",
          "PUSH_PROMISE",
          "PING",
          "GOAWAY",
          "WINDOW_UPDATE",
          "CONTINUATION",
        )
    
      /**
       * Lookup table for valid flags for DATA, HEADERS, CONTINUATION. Invalid combinations are
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InternetDomainName.java

      /**
       * Validation method used by {@code from} to ensure that the domain name is syntactically valid
       * according to RFC 1035.
       *
       * @return Is the domain name syntactically valid?
       */
      private static boolean validateSyntax(List<String> parts) {
        int lastIndex = parts.size() - 1;
    
        // Validate the last part specially, as it has different syntax rules.
    
        if (!validatePart(parts.get(lastIndex), true)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Test excessive maxTransactSize (> 16MB)
            SMBUtil.writeInt4(20 * 1024 * 1024, buffer, 28); // 20MB
            SMBUtil.writeInt4(1024 * 1024, buffer, 32); // 1MB read size - valid
            SMBUtil.writeInt4(1024 * 1024, buffer, 36); // 1MB write size - valid
    
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> {
                response.readBytesWireFormat(buffer, 0);
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top