- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for getPrincipal (0.23 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11.7K bytes - Click Count (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() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.5K bytes - Click Count (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).Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 112.2K bytes - Click Count (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;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
void getUserDomain_fromSubjectPrincipal() { Subject subject = new Subject(); Principal kp = new KerberosPrincipal("******@****.***"); subject.getPrincipals().add(kp); Kerb5Authenticator auth = new Kerb5Authenticator(subject); assertEquals("EXAMPLE.COM", auth.getUserDomain()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
.lookupPrincipalByName(getUsername()); ImmutableList<AclEntry> acl = ImmutableList.of( AclEntry.newBuilder() .setType(ALLOW) .setPrincipal(user) .setPermissions(EnumSet.allOf(AclEntryPermission.class)) .setFlags(DIRECTORY_INHERIT, FILE_INHERIT) .build());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 29 18:50:14 GMT 2025 - 11.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
} lc.login(); Subject s = lc.getSubject(); if (log.isDebugEnabled()) { log.debug("Got subject: " + s.getPrincipals()); } if (log.isTraceEnabled()) { log.trace("Got subject " + s); } this.cachedSubject = s; return this.cachedSubject;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.3K bytes - Click Count (1)