https://github.com/robtimus/ip-validation
Contains validation constraints for IP addresses
https://github.com/robtimus/ip-validation
ip ip-address ipv4 ipv6 java validation
Last synced: 10 months ago
JSON representation
Contains validation constraints for IP addresses
- Host: GitHub
- URL: https://github.com/robtimus/ip-validation
- Owner: robtimus
- License: apache-2.0
- Created: 2019-07-01T19:42:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T12:40:01.000Z (over 2 years ago)
- Last Synced: 2025-01-18T01:45:22.654Z (over 1 year ago)
- Topics: ip, ip-address, ipv4, ipv6, java, validation
- Language: Java
- Homepage: https://robtimus.github.io/ip-validation/
- Size: 576 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ip-validation
[](https://search.maven.org/artifact/com.github.robtimus/ip-validation)
[](https://github.com/robtimus/ip-validation/actions/workflows/build.yml)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aip-validation)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aip-validation)
[](https://snyk.io/test/github/robtimus/ip-validation)
Provides validation constraints that work on both [CharSequence](https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html) and [IPAddress](https://robtimus.github.io/ip-utils/apidocs/com/github/robtimus/net/ip/IPAddress.html). 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](https://beanvalidation.org/3.0/), as part of Jakarta EE 9.
Version 1.x of this library has been written for [Jakarta Bean Validation 2.0](https://beanvalidation.org/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](https://beanvalidation.org/1.1/).