/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
"Expected a closing square bracket for IPv6 address", 0); if (InetAddress.isNumeric(host)) {
if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { return true;
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
/** * Returns the bytes of the given IP address or masked IP address. */ public static byte[] ipStrToBytes(String ip) throws IOException { if (!InetAddress.isNumeric(ip)) { throw new IOException("Not an IP address: " + ip); } return InetAddress.getByName(ip).getAddress(); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
public boolean verify(String host, X509Certificate certificate) { return InetAddress.isNumeric(host) ? verifyIpAddress(host, certificate) : verifyHostName(host, certificate); }
if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { return true;
if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { return true;
if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { return true;
if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { return true;