- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for refreshing (0.04 sec)
-
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
} /** * {@inheritDoc} * * @see jcifs.smb.Kerb5Authenticator#refresh() */ @Override public void refresh() throws CIFSException { log.debug("Refreshing JAAS credentials"); this.cachedSubject = null; } @Override public synchronized Subject getSubject() { if (this.cachedSubject != null) { return this.cachedSubject;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.3K bytes - Viewed (0)