- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for renewCredentials (0.1 sec)
-
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
// Perform the renewal boolean renewed = wrapper.renewCredentials("locationHint", null); // Verify that renew() was called and credentials were updated assertTrue(renewed, "renewCredentials should return true when renewable credentials are renewed");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
@Test void testRenewCredentials_True() { // Test renewCredentials(String locationHint, Throwable error) method when true String locationHint = "testLocation"; Throwable error = new RuntimeException("testError"); when(mockDelegate.renewCredentials(locationHint, error)).thenReturn(true); assertTrue(cifsContextWrapper.renewCredentials(locationHint, error));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
String hint = "hint"; Throwable error = new Exception(); when(mockContext.renewCredentials(hint, error)).thenReturn(true); // When boolean renewed = mockContext.renewCredentials(hint, error); // Then assertTrue(renewed); verify(mockContext).renewCredentials(hint, error); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextCredentialWrapper.java
public Credentials getCredentials() { return this.creds; } /** * {@inheritDoc} * * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable) */ @Override public boolean renewCredentials(final String locationHint, final Throwable error) { final Credentials cred = getCredentials(); if (cred instanceof final SmbRenewableCredentials renewable) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
public CIFSContext withGuestCrendentials() { return wrap(this.delegate.withGuestCrendentials()); } @Override public boolean renewCredentials(final String locationHint, final Throwable error) { return this.delegate.renewCredentials(locationHint, error); } @Override public NameServiceClient getNameServiceClient() { return this.delegate.getNameServiceClient(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
*/ protected abstract Credentials getDefaultCredentials(); /** * {@inheritDoc} * * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable) */ @Override public boolean renewCredentials(final String locationHint, final Throwable error) { return false; } /** * {@inheritDoc} * *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/CIFSContext.java
* * @param locationHint URL or location hint for credential renewal * @param error the error that triggered renewal * @return whether new credentials are obtained */ boolean renewCredentials(String locationHint, Throwable error);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
assertFalse(context.hasDefaultCredentials()); } @Test void testRenewCredentials() { assertFalse(context.renewCredentials("someLocation", new Exception("someError"))); } @Test void testClose() throws CIFSException { assertFalse(context.isCloseCalled()); boolean result = context.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0)