- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for validateSmbUrl (0.06 seconds)
-
src/main/java/jcifs/util/PathValidator.java
/** * Validate an SMB URL * * @param smbUrl the SMB URL to validate * @return normalized safe URL * @throws SmbException if URL is invalid */ public String validateSmbUrl(String smbUrl) throws SmbException { if (smbUrl == null || smbUrl.isEmpty()) { throw new SmbException("SMB URL cannot be null or empty"); } // Check URL formatCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/test/java/jcifs/util/PathValidatorTest.java
String url = "smb://user:pass@server/share"; String normalized = validator.validateSmbUrl(url); assertTrue(normalized.contains("user:pass@")); } @Test public void testSmbUrlWithPort() throws Exception { String url = "smb://server:445/share"; String normalized = validator.validateSmbUrl(url); // Standard port 445 might be removed in normalizationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.6K bytes - Click Count (0)