- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for refreshing (0.04 seconds)
-
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
Kerb5Authenticator auth = new Kerb5Authenticator((Subject) null); SmbUnsupportedOperationException ex = assertThrows(SmbUnsupportedOperationException.class, auth::refresh); assertTrue(ex.getMessage().contains("Refreshing credentials is not supported")); } @Test @DisplayName("clone: copies all relevant fields") void clone_copiesFields() { Subject subj = new Subject();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
Subject copySubj = copy.getSubject(); assertNotNull(copySubj); assertSame(cachedOrig, copySubj, "Clone should share the cached Subject reference"); // Refreshing the original must not clear the clone's cached subject orig.refresh(); // Clone should retain its cached Subject
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
} @Override public void refresh() throws CIFSException { // custom Kerb5Authenticators need to override this method for support throw new SmbUnsupportedOperationException("Refreshing credentials is not supported by this authenticator"); } @Override public Kerb5Authenticator clone() { Kerb5Authenticator auth = new Kerb5Authenticator(getSubject());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13.2K bytes - Click Count (0) -
internal/dsync/dsync_test.go
dm1 := NewDRWMutex(ds, "aap") dm2 := NewDRWMutex(ds, "noot") dm1.Lock(id, source) dm2.Lock(id, source) dm1.Unlock(t.Context()) dm2.Unlock(t.Context()) } // Test refreshing lock - refresh should always return true func TestSuccessfulLockRefresh(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode.") } dm := NewDRWMutex(ds, "aap")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.8K bytes - Click Count (0) -
internal/dsync/drwmutex.go
lockRefreshed++ } else { lockNotFound++ } if lockRefreshed >= quorum || lockNotFound > len(restClnts)-quorum { done = true } case <-ctx.Done(): // Refreshing is canceled return false, ctx.Err() } if done { break } } // We may have some unused results in ch, release them async. go func() { wg.Wait() xioutil.SafeClose(ch)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 20.3K bytes - Click Count (0)