- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 27 for createName (0.07 seconds)
-
src/main/java/jcifs/smb/Kerb5Context.java
GSSCredential clientCreds = null; Oid mechOid = JGSS_KRB5_MECH_OID; if (realm != null) { this.serviceName = manager.createName(service + "/" + host + "@" + realm, JGSS_KRB5_NAME_OID, mechOid); } else { this.serviceName = manager.createName(service + "@" + host, GSSName.NT_HOSTBASED_SERVICE, mechOid); } if (log.isDebugEnabled()) {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/Kerb5ContextTest.java
mockedStatic.when(GSSManager::getInstance).thenReturn(gssManager); // Setup mock behavior for GSSManager with lenient matchers lenient().when(gssManager.createName(anyString(), any(), any())).thenReturn(serviceName); lenient().when(gssManager.createName(anyString(), any())).thenReturn(serviceName); lenient().when(gssManager.createContext(any(), any(), any(), anyInt())).thenReturn(gssContext);
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/test/java/jcifs/smb/FileEntryTest.java
static Stream<Arguments> longGetterProvider() { return Stream.of(Arguments.of((LongGetter) FileEntry::createTime, -1L, "negative createTime"), Arguments.of((LongGetter) FileEntry::createTime, 0L, "zero createTime"), Arguments.of((LongGetter) FileEntry::createTime, Long.MAX_VALUE, "max createTime"), Arguments.of((LongGetter) FileEntry::lastModified, -2L, "negative lastModified"),Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
this.directoryPath = path; this.leaseKey = key; this.scope = scope; this.createTime = System.currentTimeMillis(); this.lastUpdateTime = createTime; this.lastAccessTime = createTime; this.maxAge = 30000; // 30 seconds default this.children = new ConcurrentHashMap<>(); this.lock = new ReentrantReadWriteLock();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
when(mockResource.lastAccess()).thenReturn(currentTime - 1000); when(mockResource.createTime()).thenReturn(currentTime - 2000); // When long lastModified = mockResource.lastModified(); long lastAccess = mockResource.lastAccess(); long createTime = mockResource.createTime(); // Then
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
// Default instance assertEquals(0L, shareInfo.createTime()); assertEquals(0L, shareInfo.lastModified()); assertEquals(0L, shareInfo.lastAccess()); // Instance with values - times are still 0 SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK); assertEquals(0L, info.createTime()); assertEquals(0L, info.lastModified());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000); when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.getName()).thenReturn("subfolder");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
when(mockFile1.lastModified()).thenReturn(1000L); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); when(mockFile1.createTime()).thenReturn(500L); when(mockFile1.lastAccess()).thenReturn(800L); when(mockFile2.getName()).thenReturn("dir1"); when(mockFile2.length()).thenReturn(0L);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 15.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
fileBothDirectoryInfo.decode(buffer, 0, buffer.length); // Verify assertEquals(expectedAttributes, fileBothDirectoryInfo.getAttributes()); } @Test @DisplayName("Test createTime returns correct creation time") void testCreateTime() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = createValidBuffer("file.txt", "FILE~1.TXT", true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
SmbConstants.FILE_WRITE_DATA | SmbConstants.FILE_WRITE_ATTRIBUTES, SmbConstants.FILE_NO_SHARE)) { final long mtime = src.lastModified(); final long ctime = src.createTime(); final long atime = src.lastAccess(); int i = 0; long off = 0L; while (true) { final int read = fis.read(b[i]);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 16.6K bytes - Click Count (0)