- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for getNameServiceClient (0.32 sec)
-
src/test/java/jcifs/http/NtlmSspTest.java
lenient().when(mockConfig.isUseUnicode()).thenReturn(true); // Mock NameServiceClient for Type1Message test lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockAddress); lenient().when(mockAddress.getHostName()).thenReturn("WORKSTATION"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
when(mockCifsContext.getCredentials()).thenReturn(creds); when(mockCifsContext.getConfig()).thenReturn(new PropertyConfiguration(System.getProperties())); when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient); ntlmConnection = new NtlmHttpURLConnection(mockConnection, mockCifsContext); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
public SmbTransportImpl getSmbTransport(final CIFSContext tf, final String name, final int port, final boolean exclusive, final boolean forceSigning) throws IOException { final Address[] addrs = tf.getNameServiceClient().getAllByName(name, true); if (addrs == null || addrs.length == 0) { throw new UnknownHostException(name); } Arrays.sort(addrs, (o1, o2) -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
if (msg.startsWith("NTLM ")) { byte[] challenge; final NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if (pathInfo == null || server == null) { final String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
this.scope = scope; this.svr = svr; this.tc = tc; } @Override public void run() { try { this.ans = this.tc.getNameServiceClient().getNbtAllByName(this.host, this.type, this.scope, this.svr); } catch (final UnknownHostException ex) { this.uhe = ex; } catch (final Exception ex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
final Type2Message type2 = (Type2Message) message; message = new Type3Message(this.transportContext, type2, null, password, domain, user, this.transportContext.getNameServiceClient().getLocalHost().getHostName(), 0); } return message; } } private void reconnect() throws IOException { final int readTimeout = getReadTimeout();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
public Type3Message(final CIFSContext tc) { setFlags(getDefaultFlags(tc)); setDomain(tc.getConfig().getDefaultDomain()); setUser(tc.getConfig().getDefaultUsername()); setWorkstation(tc.getNameServiceClient().getLocalHost().getHostName()); } /** * Creates a Type-3 message in response to the given Type-2 message. * * @param tc * context to use * @param type2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
// Cache workgroup resolution for better performance getContext().getNameServiceClient().getByName(this.url.getHost(), true); } else { // Cache server name resolution getContext().getNameServiceClient().getByName(this.url.getHost()).getHostName(); } } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
this.out = this.socket.getOutputStream(); this.in = this.socket.getInputStream(); final SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName()); this.out.write(this.sbuf, 0, ssp.writeWireFormat(this.sbuf, 0)); if (readn(this.in, this.sbuf, 0, 4) < 4) { try { this.socket.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)