- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 149 for SmbException (1.58 sec)
-
src/test/java/jcifs/smb/SIDTest.java
} @Test @DisplayName("Textual constructor invalid format throws SmbException") void testTextualConstructorInvalid() { // Arrange String bad = "S-1"; // fewer than 3 tokens // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> new SID(bad)); assertTrue(ex.getMessage().contains("Bad textual SID format")); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
rpc.domains.count = 0; rpc.domains.domains = new lsarpc.LsarTrustInformation[0]; return null; }).when(handle).sendrecv(any()); SmbException ex = assertThrows(SmbException.class, () -> cache.resolveSids(handle, policy, sids)); assertEquals(NtStatus.NT_STATUS_ACCESS_DENIED, ex.getNtStatus()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
} private long extractNtStatus(Throwable cause) { if (cause instanceof SmbException) { return ((SmbException) cause).getNtStatus(); } return 0; } private String extractServerMessage(Throwable cause) { if (cause instanceof SmbException) { // Try to get server message from SMB exception return cause.getMessage(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
assertFalse(file.exists(), "Non-existent file should not exist"); assertThrows(SmbException.class, () -> file.length(), "Getting length of non-existent file should throw exception"); assertThrows(SmbException.class, () -> file.getInputStream(), "Getting input stream of non-existent file should throw exception"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
* @param textual the textual representation of the SID * @throws SmbException if the textual format is invalid */ public SID(final String textual) throws SmbException { final StringTokenizer st = new StringTokenizer(textual, "-"); if (st.countTokens() < 3 || !st.nextToken().equals("S")) { // need S-N-M throw new SmbException("Bad textual SID format: " + textual); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
@ParameterizedTest @NullAndEmptySource @DisplayName("treeConnectLogon: invalid logon share throws SmbException") void testTreeConnectLogonInvalid(String logonShare) { SmbSessionImpl session = spy(newSession()); when(configuration.getLogonShare()).thenReturn(logonShare); assertThrows(SmbException.class, session::treeConnectLogon); verify(session, never()).getSmbTree(anyString(), isNull()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.SmbConstants; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; import jcifs.smb.NtlmPasswordAuthenticator; import jcifs.smb.SmbException; /** * Unit tests exercising {@link SmbComSessionSetupAndX}. The class under test * contains several protected helper methods and a complex constructorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbAuthException.java
* <p> * See <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for more information about <code>SmbAuthException</code>. */ public class SmbAuthException extends SmbException { SmbAuthException(final int errcode) { super(errcode, null); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* Returns the signing key for SMB signing. * * @param challenge the server challenge bytes * @return the signing key * @throws SmbException if an error occurs generating the signing key */ public byte[] getSigningKey(final byte[] challenge) throws SmbException { switch (LM_COMPATIBILITY) { case 0: case 1: case 2: final byte[] signingKey = new byte[40];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0)