public static boolean isValidIpv6(@Nullable final String value)
    {
        if (value == null) {
            return false;
        }
        try {
            Ipv6.parse(value);
        } catch (IllegalArgumentException e) {
            return false;
        }
        return true;
    }
Checks if the provided value is a representation of an IPv6 address.

@param value the value to check
@return true if the provided value is an IPv6 address, otherwise false.
xmppserver/src/main/java/org/jivesoftware/util/IpUtils.java