- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 84 for getHostname (0.07 seconds)
-
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(config.isIpcSigningEnforced()).thenReturn(true); when(config.getLogonShare()).thenReturn("IPC$"); // Default address values when(address.getHostName()).thenReturn("test.host"); when(address.getHostAddress()).thenReturn("192.168.1.100"); } @Test @DisplayName("Should distinguish between pooled and non-pooled connections")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
lenient().when(mockCtx.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); lenient().when(mockHost.getHostName()).thenReturn("TEST_HOSTNAME"); return mockCtx; } @Test @DisplayName("Should create Type 3 message with authentication data") void testType3MessageCreation() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.3K bytes - Click Count (0) -
okhttp-tls/README.md
.build(); // Create a server certificate and a server that uses it. HeldCertificate serverCertificate = new HeldCertificate.Builder() .commonName("ingen") .addSubjectAlternativeName(server.getHostName()) .signedBy(rootCertificate) .build(); HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder() .addTrustedCertificate(rootCertificate.certificate())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
when(config.getSessionTimeout()).thenReturn(30_000); when(config.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("testhost"); transport = new SmbTransportImpl(context, address, 445, null, 0, false); } /** * Test that pre-auth integrity hash is properly synchronized */ @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessRpcClient.java
WitnessVersion witnessVersion = (request.getVersion() >= 0x00020000) ? WitnessVersion.VERSION_2 : WitnessVersion.VERSION_1; message.setVersion(witnessVersion); message.setNetName(serverAddress.getHostName()); message.setShareName(request.getShareName()); message.setIpAddress(request.getServerAddress()); message.setClientComputerName(context.getConfig().getNetbiosHostname());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost); lenient().when(mockLocalHost.getHostName()).thenReturn("localhost"); lenient().when(mockConfig.getDefaultDomain()).thenReturn("WORKGROUP"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
} boolean matches(final UniAddress address, final int port, final InetAddress localAddr, final int localPort, String hostName) { if (hostName == null) { hostName = address.getHostName(); } return (this.tconHostName == null || hostName.equalsIgnoreCase(this.tconHostName)) && address.equals(this.address) && (port == 0 || port == this.port ||Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.8K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmSspTest.java
lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockAddress); lenient().when(mockAddress.getHostName()).thenReturn("WORKSTATION"); } /** * Test case for when the 'Authorization' header is missing. * Expects the server to respond with a 'WWW-Authenticate: NTLM' header and a 401 status.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.4K bytes - Click Count (1) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
when(cfg.getSessionTimeout()).thenReturn(30_000); when(cfg.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("localhost"); // Create the transport with safe defaults (no real sockets) transport = new SmbTransportImpl(ctx, address, 445, null, 0, false);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java
*/ protected String getHostInfo() { final StringBuilder buf = new StringBuilder(); try { final InetAddress ia = InetAddress.getLocalHost(); final String hostname = ia.getHostName(); if (StringUtil.isNotBlank(hostname)) { buf.append(hostname); } final String ip = IpAddressUtil.getUrlHost(ia); if (StringUtil.isNotBlank(ip)) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 23K bytes - Click Count (0)