- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 135 for CIFSException (0.22 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
assertNull(ex.getMessage(), "Default message should be null"); assertNull(ex.getCause(), "Default cause should be null"); assertTrue(ex instanceof CIFSException, "Should be a CIFSException"); assertTrue(ex instanceof IOException, "Should be an IOException"); } @Test @DisplayName("Should create SpnegoException with message") void testWithMessage() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Context.java
* {@inheritDoc} * * @throws CIFSException * * @see jcifs.smb.SSPContext#calculateMIC(byte[]) */ @Override public byte[] calculateMIC(byte[] data) throws CIFSException { try { return this.gssContext.getMIC(data, 0, data.length, new MessageProp(false)); } catch (GSSException e) { throw new CIFSException("Failed to calculate MIC", e); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
void testGetSessionKey() throws Exception { SmbSessionImpl session = newSession(); // Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey); assertTrue(noKey.getMessage().contains("No session key")); // Set a key via reflection and verify retrieval
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString()); // Assert - type hierarchy: subclass of CIFSException and IOException assertTrue(ex instanceof jcifs.CIFSException, "Should extend CIFSException"); assertTrue(ex instanceof IOException, "Should be an IOException (checked)"); } @ParameterizedTest(name = "Message-only ctor preserves message: [{0}]")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/main/java/jcifs/spnego/SpnegoException.java
*/ package jcifs.spnego; import jcifs.CIFSException; /** * Exception thrown during SPNEGO authentication processing. * * This exception indicates an error in SPNEGO token processing, * negotiation, or authentication flow. * * @author mbechler */ public class SpnegoException extends CIFSException { /** * */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDTest.java
void testResolveWeakCIFSExceptionIsIgnored() throws Exception { SID sid = new SID("S-1-5-21-1-2-3"); doThrow(new CIFSException("boom")).when(mockResolver).resolveSids(any(), anyString(), any()); sid.initContext("srv", mockCtx); // Accessor should swallow CIFSException and proceed sid.getType();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("calculateMIC wraps GSSException into CIFSException") void calculateMIC_failure_wraps() throws Exception { byte[] data = new byte[] { 0 }; when(gssContext.getMIC(any(), anyInt(), anyInt(), any())).thenThrow(new GSSException(GSSException.FAILURE)); CIFSException ex = assertThrows(CIFSException.class, () -> ctx.calculateMIC(data));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.context; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.Credentials; import jcifs.smb.NtlmPasswordAuthenticator; import jcifs.smb.NtlmPasswordAuthenticator.AuthenticationType; /** * Abstract base implementation of CIFSContext providing common functionality.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Test @DisplayName("getDfsReferrals handles empty name via CIFSException") void getDfsReferrals_emptyName() throws Exception { String emptyName = ""; doThrow(new jcifs.CIFSException("invalid dfs name")).when(transport) .getDfsReferrals(eq(ctx), eq(emptyName), any(), any(), anyInt()); assertThrows(jcifs.CIFSException.class, () -> transport.getDfsReferrals(ctx, emptyName, "h", "d", 1));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/CloseableIteratorTest.java
class CloseableIteratorTest extends BaseTest { @Mock private CloseableIterator<SmbResource> mockIterator; @Test @DisplayName("Should define close method") void testCloseMethod() throws CIFSException { // When mockIterator.close(); // Then verify(mockIterator).close(); } @Test @DisplayName("Should extend Iterator and AutoCloseable")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 964 bytes - Click Count (0)