Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for fromValues (0.05 sec)

  1. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            assertEquals(HandleType.NONE, HandleType.fromValue(0));
            assertEquals(HandleType.DURABLE_V1, HandleType.fromValue(1));
            assertEquals(HandleType.DURABLE_V2, HandleType.fromValue(2));
            assertEquals(HandleType.PERSISTENT, HandleType.fromValue(3));
    
            assertThrows(IllegalArgumentException.class, () -> {
                HandleType.fromValue(99);
            });
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		return
    	}
    
    	formValues.Set("Bucket", bucket)
    	if fileName != "" && strings.Contains(formValues.Get("Key"), "${filename}") {
    		// S3 feature to replace ${filename} found in Key form field
    		// by the filename attribute passed in multipart
    		formValues.Set("Key", strings.ReplaceAll(formValues.Get("Key"), "${filename}", fileName))
    	}
    	object := trimLeadingSlash(formValues.Get("Key"))
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
  3. cmd/postpolicyform_test.go

    			}
    		})
    	}
    }
    
    type formValues struct {
    	http.Header
    }
    
    func newFormValues() formValues {
    	return formValues{make(http.Header)}
    }
    
    func (f formValues) Set(key, value string) formValues {
    	f.Header.Set(key, value)
    	return f
    }
    
    func (f formValues) Add(key, value string) formValues {
    	f.Header.Add(key, value)
    	return f
    }
    
    func (f formValues) Clone() formValues {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    func doesPolicySignatureV2Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	accessKey := formValues.Get(xhttp.AmzAccessKeyID)
    
    	r := &http.Request{Header: formValues}
    	cred, _, s3Err := checkKeyValid(r, accessKey)
    	if s3Err != ErrNone {
    		return cred, s3Err
    	}
    	policy := formValues.Get("Policy")
    	signature := formValues.Get(xhttp.AmzSignatureV2)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. cmd/postpolicyform.go

    // checkPostPolicy - apply policy conditions and validate input values.
    // Note that content-length-range is checked in the API handler function PostPolicyBucketHandler.
    // formValues is the already-canonicalized form values from the POST request.
    func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) error {
    	// Check if policy document expiry date is still not reached
    	if !postPolicyForm.Expiration.After(UTCNow()) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. cmd/signature-v2_test.go

    	}
    	for i, test := range testCases {
    		formValues := make(http.Header)
    		formValues.Set("Awsaccesskeyid", test.accessKey)
    		formValues.Set("Signature", test.signature)
    		formValues.Set("Policy", test.policy)
    		_, errCode := doesPolicySignatureV2Match(formValues)
    		if errCode != test.errCode {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/HandleType.java

            return value;
        }
    
        /**
         * Get HandleType from numeric value
         * @param value the numeric value
         * @return the corresponding HandleType
         */
        public static HandleType fromValue(int value) {
            for (HandleType type : values()) {
                if (type.value == value) {
                    return type;
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessEventType.java

         *
         * @param value the numeric value
         * @return the corresponding WitnessEventType
         * @throws IllegalArgumentException if value is not recognized
         */
        public static WitnessEventType fromValue(int value) {
            for (WitnessEventType type : values()) {
                if (type.value == value) {
                    return type;
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            WitnessNotificationResponse notification = new WitnessNotificationResponse();
    
            // Notification type
            int notificationType = buf.dec_ndr_long();
            notification.setNotificationType(WitnessEventType.fromValue(notificationType));
    
            // Length
            int length = buf.dec_ndr_long();
            notification.setLength(length);
    
            // Number of messages
            int numberOfMessages = buf.dec_ndr_long();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
Back to top