- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateSmbUrl (0.36 sec)
-
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 normalization
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
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 format
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0)