public class DnsSec extends Object
Constructor and Description |
---|
DnsSec() |
Modifier and Type | Method and Description |
---|---|
static InetAddress |
getByName(String name)
Access the specified URL and verifies the signatures of DNSSEC responses
if they exist, returning the resolved IP address.
|
static InetSocketAddress |
verify(InetSocketAddress unresolved)
If the specified
InetSocketAddress has not already resolved to
an IP address, this verifies the host name and returns a new, verified
and resolved InetSocketAddress . |
public static InetSocketAddress verify(InetSocketAddress unresolved) throws DNSSECException, IOException
InetSocketAddress
has not already resolved to
an IP address, this verifies the host name and returns a new, verified
and resolved InetSocketAddress
.unresolved
- An unresolved InetSocketAddress
.InetSocketAddress
.DNSSECException
- If there's a problem with the DNS signature.IOException
- If there's a problem with the nameservers.public static InetAddress getByName(String name) throws DNSSECException, IOException
name
- The name of the site.IOException
- If there's an IO error accessing the nameservers or
sending or receiving messages with them.DNSSECException
- If there's a DNS error verifying the signatures
for any domain.Copyright © 2011–2017 LittleShoot. All rights reserved.