ip-validation

Provides validation constraints that work on both CharSequence and IPAddress. These not only allow you to validate that a value is a valid IP address, but also that the IP address is contained in a specific IP range or subnet.

Bean Validation API support

Version 2.x of this library has been written for Jakarta Bean Validation 3.0, as part of Jakarta EE 9.

Version 1.x of this library has been written for Jakarta Bean Validation 2.0, as part of Jakarta EE 8. However, it should also work with Bean Valdation 2.0 (non-Jakarta) and Bean Validation 1.1.