Searched refs:hostname (Results 1 - 25 of 107) sorted by relevance

12345

/openjdk10/jdk/src/java.base/share/classes/javax/net/ssl/
H A DHostnameVerifier.java29 * This class is the base interface for hostname verification.
31 * During handshaking, if the URL's hostname and
32 * the server's identification hostname mismatch, the
39 * These callbacks are used when the default rules for URL hostname
51 * @param hostname the host name
55 public boolean verify(String hostname, SSLSession session); argument
H A DSNIHostName.java45 * "HostName" contains the fully qualified DNS hostname of the server, as
46 * understood by the client. The encoded server name value of a hostname is
63 private final String hostname; field in class:SNIHostName
66 * Creates an {@code SNIHostName} using the specified hostname.
69 * the encoded server name value of a hostname is
71 * {@code hostname} can be a user-friendly Internationalized Domain Name
77 * translate the {@code hostname} into ASCII Compatible Encoding (ACE), as:
79 * IDN.toASCII(hostname, IDN.USE_STD3_ASCII_RULES);
82 * The {@code hostname} argument is illegal if it:
84 * <li> {@code hostname} i
95 SNIHostName(String hostname) argument
[all...]
/openjdk10/jdk/test/java/net/InetAddress/
H A DCachedUnknownHostName.java35 String hostname = new String("bogusHostName");
38 InetAddress.getByName(hostname);
40 hostname);
48 InetAddress.getByName(hostname);
50 hostname);
H A DWhiteSpaceHostTest.java28 * hostname that start with white space.
40 String hostname = tokenizer.nextToken();
43 ia = InetAddress.getByName(hostname);
48 throw new Exception("Bogus hostname lookup returned any local address");
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/legacy/connection/
H A DEndPointInfoImpl.java38 protected String hostname; field in class:EndPointInfoImpl
43 public EndPointInfoImpl(String type, int port, String hostname) { argument
46 this.hostname = hostname;
56 return hostname;
60 return hostname;
83 return type.hashCode() ^ hostname.hashCode() ^ port;
101 if (!hostname.equals(other.hostname)) {
112 hostname
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/ssl/
H A DUtilities.java42 * Puts {@code hostname} into the {@code serverNames} list.
52 List<SNIServerName> serverNames, String hostname) {
54 SNIHostName sniHostName = rawToSNIHostName(hostname);
87 * Converts string hostname to {@code SNIHostName}.
89 * Note that to check whether a hostname is a valid domain name, we cannot
90 * use the hostname resolved from name services. For virtual hosting,
91 * multiple hostnames may be bound to the same IP address, so the hostname
94 * @param hostname
95 * the raw hostname
96 * @return an instance of {@link SNIHostName}, or null if the hostname doe
51 addToSNIServerNameList( List<SNIServerName> serverNames, String hostname) argument
99 rawToSNIHostName(String hostname) argument
[all...]
H A DX509TrustManagerImpl.java354 SNIHostName hostname = null;
361 hostname = (SNIHostName)sniName;
364 hostname = new SNIHostName(sniName.getEncoded());
377 if (hostname != null) {
378 return hostname.getAsciiName();
440 String hostname = getHostNameInSNI(sniNames);
441 if (hostname != null) {
443 checkIdentity(hostname, cert, algorithm, chainsToPublicCA);
446 if (hostname.equalsIgnoreCase(peerHost)) {
461 * Identify the peer by its certificate and hostname
465 checkIdentity(String hostname, X509Certificate cert, String algorithm) argument
470 checkIdentity(String hostname, X509Certificate cert, String algorithm, boolean chainsToPublicCA) argument
[all...]
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/transport/
H A DSocketOrChannelContactInfoImpl.java50 protected String hostname; field in class:SocketOrChannelContactInfoImpl
73 String hostname,
78 this.hostname = hostname;
89 String hostname,
92 this(orb, contactInfoList, socketType, hostname, port);
121 socketType, hostname, port);
147 return hostname;
163 cachedHashCode = socketType.hashCode() ^ hostname.hashCode() ^ port;
183 if (!hostname
69 SocketOrChannelContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, String socketType, String hostname, int port) argument
83 SocketOrChannelContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port) argument
[all...]
H A DDefaultIORToSocketInfoImpl.java54 String hostname = primary.getHost().toLowerCase();
61 socketInfo = createSocketInfo(hostname, port);
70 hostname = alternate.getAddress().getHost().toLowerCase();
72 socketInfo= createSocketInfo(hostname, port);
78 private SocketInfo createSocketInfo(final String hostname, final int port) argument
82 public String getHost() { return hostname; }
/openjdk10/jdk/src/java.base/share/classes/java/net/
H A DInetSocketAddress.java37 * It can also be a pair (hostname + port number), in which case an attempt
38 * will be made to resolve the hostname. If resolution fails then the address
57 // The hostname of the Socket Address
58 private String hostname; field in class:InetSocketAddress.InetSocketAddressHolder
64 private InetSocketAddressHolder(String hostname, InetAddress addr, int port) { argument
65 this.hostname = hostname;
79 if (hostname != null)
80 return hostname;
87 if (hostname !
147 checkHost(String hostname) argument
215 InetSocketAddress(String hostname, int port) argument
228 InetSocketAddress(int port, String hostname) argument
[all...]
H A DInetAddressImpl.java41 lookupAllHostAddr(String hostname) throws UnknownHostException; argument
/openjdk10/jdk/src/jdk.jcmd/share/classes/sun/tools/jps/
H A DArguments.java51 private String hostname; field in class:Arguments
59 ps.println(" <hostid>: <hostname>[:<port>]");
107 hostname = null;
110 hostname = args[args.length - 1];
117 hostId = new HostIdentifier(hostname);
121 + hostname);
159 public String hostname() { method in class:Arguments
160 return hostname;
/openjdk10/jdk/src/java.naming/share/classes/com/sun/jndi/ldap/ext/
H A DStartTlsResponseImpl.java73 * The server's hostname.
75 private transient String hostname = null; field in class:StartTlsResponseImpl
109 * The hostname verifier callback.
143 * Overrides the default hostname verifier used by {@code negotiate()}
150 * @param verifier The non-null hostname verifier callback.
185 * hostname against that in the server's certificate. The server's
186 * hostname is extracted from the subjectAltName in the server's
225 if (verify(hostname, sslSession)) {
234 verifier.verify(hostname, sslSession)) {
244 "hostname o
289 setConnection(Connection ldapConnection, String hostname) argument
394 verify(String hostname, SSLSession session) argument
[all...]
/openjdk10/jdk/src/java.naming/share/classes/com/sun/jndi/ldap/
H A DClientId.java39 * - server's hostname (case-insensitive)
58 final private String hostname; field in class:ClientId
72 ClientId(int version, String hostname, int port, String protocol, argument
75 this.hostname = hostname.toLowerCase(Locale.ENGLISH); // ignore case
113 + (this.hostname != null ? this.hostname.hashCode() : 0)
129 && (hostname == other.hostname // null OK
130 || (hostname !
[all...]
/openjdk10/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/
H A DX509ExtendedTrustManager.java77 * to use. If the algorithm and the peer hostname are available, the
78 * peer hostname is checked against the peer's identity presented in
83 * @param hostname the peer hostname
92 String authType, String hostname, String algorithm)
106 * to use. If the algorithm and the peer hostname are available, the
107 * peer hostname is checked against the peer's identity presented in
112 * @param hostname the peer hostname
121 String authType, String hostname, Strin
91 checkClientTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
120 checkServerTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
[all...]
/openjdk10/jdk/test/javax/net/ssl/ServerName/
H A DBestEffortOnLazyConnected.java76 private static String hostname = null; field in class:BestEffortOnLazyConnected
143 sslSocket.connect(new InetSocketAddress(hostname, serverPort), 0);
184 hostname = InetAddress.getLocalHost().getCanonicalHostName();
187 "Ignore the test as the local hostname cannot be determined");
194 hostname);
195 // Ignore the test if the hostname does not sound like a domain name.
196 if ((hostname == null) || hostname.isEmpty() ||
197 !hostname.contains(".") || hostname
[all...]
H A DIllegalSNIName.java27 * @summary SNIHostName does not throw IAE when hostname ends
46 SNIHostName hostname = new SNIHostName(name);
/openjdk10/jdk/test/java/rmi/transport/checkFQDN/
H A DCheckFQDNClient.java48 * hostname of this client vm.
54 String hostname = null;
57 hostname = retrieveServerName();
59 hostname);
65 tell.tellServerName(hostname);
74 /* what is the rmi hostname for this vm? */
90 // this is the name used by rmi for the client hostname
98 /* thread to geth the rmi hostname of this vm */
/openjdk10/jdk/src/java.base/share/classes/sun/net/www/protocol/http/
H A DNegotiateAuthentication.java121 * hostname at a success try.<br>
124 * the same hostname, the answer is retrieved from cache.
132 String hostname = hci.host;
133 hostname = hostname.toLowerCase();
134 if (supported.containsKey(hostname)) {
135 return supported.get(hostname);
140 supported.put(hostname, true);
151 cache.get().put(hostname, neg);
154 supported.put(hostname, fals
[all...]
/openjdk10/jdk/test/sun/net/www/protocol/https/HttpsURLConnection/
H A DImpactOnSNI.java87 private static String hostname = null; field in class:ImpactOnSNI
169 URL url = new URL("https://" + hostname + ":" + serverPort);
191 public boolean verify(String hostname, SSLSession session) { argument
225 hostname = InetAddress.getLocalHost().getCanonicalHostName();
228 "Ignore the test as the local hostname cannot be determined");
235 hostname);
236 // Ignore the test if the hostname does not sound like a domain name.
237 if ((hostname == null) || hostname.isEmpty() ||
238 !hostname
[all...]
/openjdk10/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/
H A DNetClient.java39 public static NetClient getInstance(String protocol, String hostname, int port, argument
42 return new TCPClient(hostname, port, timeout);
44 return new UDPClient(hostname, port, timeout);
59 TCPClient(String hostname, int port, int timeout) argument
62 tcpSocket.connect(new InetSocketAddress(hostname, port), timeout);
184 UDPClient(String hostname, int port, int timeout) argument
186 iaddr = InetAddress.getByName(hostname);
/openjdk10/jdk/src/java.base/share/classes/com/sun/security/ntlm/
H A DClient.java46 private final String hostname; field in class:Client
65 * @param hostname hostname of the client, can be null
76 public Client(String version, String hostname, String username, argument
83 this.hostname = hostname;
89 hostname, username, domain, version, v.toString());
141 p.writeSecurityBuffer(44, hostname, unicode);
/openjdk10/jdk/src/java.security.sasl/share/classes/com/sun/security/sasl/ntlm/
H A DNTLMClient.java96 "com.sun.security.sasl.ntlm.hostname";
119 String hostname = null;
128 hostname = (String)props.get(NTLM_HOSTNAME);
155 if (hostname == null) {
157 hostname = InetAddress.getLocalHost().getCanonicalHostName();
159 hostname = "localhost";
171 client = new Client(version, hostname,
/openjdk10/jdk/test/sun/net/www/protocol/https/HttpsClient/
H A DServerIdentityTest.java54 private static String hostname; field in class:ServerIdentityTest
86 "https://" + hostname + ":" + serverPort + "/index.html");
115 hostname = args[1];
/openjdk10/jdk/src/java.base/unix/native/libnet/
H A DInet4AddressImpl.c41 extern jobjectArray lookupIfLocalhost(JNIEnv *env, const char *hostname, jboolean includeV6);
66 char hostname[NI_MAXHOST + 1]; local
68 hostname[0] = '\0';
69 if (gethostname(hostname, NI_MAXHOST) != 0) {
70 strcpy(hostname, "localhost");
72 // try to resolve hostname via nameservice
73 // if it is known but getnameinfo fails, hostname will still be the
78 hostname[NI_MAXHOST] = '\0';
83 if (getaddrinfo(hostname, NULL, &hints, &res) == 0) {
84 getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOS
108 const char *hostname; local
[all...]

Completed in 143 milliseconds

12345