- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setPrincipal (0.11 sec)
-
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
/** * Gets the principal associated with this handle * @return the principal or null if not authenticated */ public Principal getPrincipal() { if (this instanceof DcerpcPipeHandle) { return ((DcerpcPipeHandle) this).pipe.getPrincipal(); } return null; } @Override public String toString() { return binding.toString(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
String url = "smb1://user:pass@server/share/file.txt"; SmbFile smbFile = new SmbFile(url, mockAuth); assertNotNull(smbFile); assertEquals(mockAuth, smbFile.getPrincipal()); assertEquals("server", smbFile.getServer()); assertEquals("share", smbFile.getShare()); } @Test public void testConstructorWithMalformedUrl() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
final SID[] sids = new SID[rpc.sids.num_sids]; final String origin_server = handle.getServer(); final NtlmPasswordAuthentication origin_auth = (NtlmPasswordAuthentication) handle.getPrincipal(); for (int i = 0; i < sids.length; i++) { sids[i] = new SID(rpc.sids.sids[i].sid, 0, null, null, false); sids[i].origin_server = origin_server;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* Returns the {@code NtlmPasswordAuthentication} object used as * credentials with this file or pipe. This can be used to retrieve the * username for example: * {@code * String username = f.getPrincipal().getName(); * } * The {@code Principal} object returned will never be {@code null} * however the username can be {@code null} indication anonymous * credentials were used (e.g. some IPC$ services).
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0)