- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 124 for creds (0.23 sec)
-
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertNull(b.getServer()); } @Test @DisplayName("shouldForceSigning depends on config, creds, and IPC") void testShouldForceSigning() { when(config.isIpcSigningEnforced()).thenReturn(true); when(creds.isAnonymous()).thenReturn(false); // Case 1: share is IPC$ -> IPC SmbResourceLocatorImpl ipc = locator("smb://server/IPC$/");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
void testWithCredentials() { // Given Credentials creds = mock(Credentials.class); CIFSContext newContext = mock(CIFSContext.class); when(mockContext.withCredentials(creds)).thenReturn(newContext); // When CIFSContext context = mockContext.withCredentials(creds); // Then assertEquals(newContext, context);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
cmd/signature-v4-parser.go
creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2) if len(creds) != 2 { return ch, ErrMissingFields } if creds[0] != "Credential" { return ch, ErrMissingCredTag } credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator) if len(credElements) < 5 { return ch, ErrCredMalformed }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
cmd/signature-v2_test.go
t.Fatal(err) } creds := globalActiveCred policy := "policy" testCases := []struct { accessKey string policy string signature string errCode APIErrorCode }{ {"invalidAccessKey", policy, calculateSignatureV2(policy, creds.SecretKey), ErrInvalidAccessKeyID}, {creds.AccessKey, policy, calculateSignatureV2("random", creds.SecretKey), ErrSignatureDoesNotMatch},
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
Runtime.getRuntime().addShutdownHook(this); } /** * @param creds the credentials to use * @return a wrapped context with the given credentials */ @Override public CIFSContext withCredentials(final Credentials creds) { return new CIFSContextCredentialWrapper(this, creds); } /** * * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4K bytes - Viewed (0) -
cmd/lock-rest-server-common_test.go
} locker := &lockRESTServer{ ll: &localLocker{ mutex: sync.Mutex{}, lockMap: make(map[string][]lockRequesterInfo), }, } creds := globalActiveCred token, err := authenticateNode(creds.AccessKey, creds.SecretKey) if err != nil { t.Fatal(err) } return fsDir, locker, token } // Test function to remove lock entries from map based on name & uid combination
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 3.2K bytes - Viewed (0) -
cmd/auth-handler_test.go
func mustNewSignedRequest(method string, urlStr string, contentLength int64, body io.ReadSeeker, t *testing.T) *http.Request { req := mustNewRequest(method, urlStr, contentLength, body, t) cred := globalActiveCred if err := signRequestV4(req, cred.AccessKey, cred.SecretKey); err != nil { t.Fatalf("Unable to initialized new signed http request %s", err) } return req } // This is similar to mustNewRequest but additionally the request
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
// Arrange: minimal credentials chain so SmbSessionImpl constructor succeeds CredentialsInternal creds = mock(CredentialsInternal.class); when(ctx.getCredentials()).thenReturn(creds); when(creds.unwrap(CredentialsInternal.class)).thenReturn(creds); when(creds.clone()).thenReturn(creds); assertEquals(0, transport.getNumSessions()); // Act: create new session (happy path)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
cmd/warm-backend-minio.go
return nil, errors.New("no bucket name was provided") } u, err := url.Parse(conf.Endpoint) if err != nil { return nil, err } creds := credentials.NewStaticV4(conf.AccessKey, conf.SecretKey, "") opts := &minio.Options{ Creds: creds, Secure: u.Scheme == "https", Transport: globalRemoteTargetTransport, TrailingHeaders: true, } client, err := minio.New(u.Host, opts)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 4K bytes - Viewed (1) -
cmd/tier-handlers.go
return } var creds madmin.TierCreds json := jsoniter.ConfigCompatibleWithStandardLibrary if err := json.Unmarshal(reqBytes, &creds); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } // Refresh from the disk in case we had missed notifications about edits from peers.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Sep 12 20:44:05 UTC 2024 - 7.5K bytes - Viewed (0)