Class IPAddress
java.lang.Object
org.gudy.bouncycastle.util.IPAddress
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanValidate the given IPv4 or IPv6 address.private static booleanisValidIPv4(String address) Validate the given IPv4 address.private static booleanisValidIPv6(String address) Validate the given IPv6 address.
-
Field Details
-
ZERO
-
-
Constructor Details
-
IPAddress
public IPAddress()
-
-
Method Details
-
isValid
Validate the given IPv4 or IPv6 address.- Parameters:
address- the IP address as a String.- Returns:
- true if a valid address, false otherwise
-
isValidIPv4
Validate the given IPv4 address.- Parameters:
address- the IP address as a String.- Returns:
- true if a valid IPv4 address, false otherwise
-
isValidIPv6
Validate the given IPv6 address.- Parameters:
address- the IP address as a String.- Returns:
- true if a valid IPv4 address, false otherwise
-