{"id":20741138,"url":"https://github.com/robtimus/ip-utils","last_synced_at":"2025-12-08T08:03:19.159Z","repository":{"id":57722473,"uuid":"194732563","full_name":"robtimus/ip-utils","owner":"robtimus","description":"A set of utility classes for working with IP addresses","archived":false,"fork":false,"pushed_at":"2025-09-24T15:37:59.000Z","size":939,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T17:44:27.355Z","etag":null,"topics":["ip","ip-address","ipv4","ipv6","java"],"latest_commit_sha":null,"homepage":"https://robtimus.github.io/ip-utils/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robtimus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-01T19:35:17.000Z","updated_at":"2025-09-24T15:38:03.000Z","dependencies_parsed_at":"2023-02-16T00:00:42.421Z","dependency_job_id":"65ee54b0-962a-4245-9a8e-9ff9a922c458","html_url":"https://github.com/robtimus/ip-utils","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/robtimus/ip-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fip-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fip-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fip-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fip-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robtimus","download_url":"https://codeload.github.com/robtimus/ip-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fip-utils/sbom","scorecard":{"id":269957,"data":{"date":"2025-08-11","repo":{"name":"github.com/robtimus/ip-utils","commit":"fe1cbf595ec46f8f1c227ee47a739d83c1d6f75c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/dependency-review.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/dependency-review.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-site.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/release-site.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-site.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/release-site.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-site.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/release-site.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/sonarcloud.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/sonarcloud.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/robtimus/ip-utils/sonarcloud.yml/master?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/dependency-review.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release-site.yml:22","Warn: no topLevel permission defined: .github/workflows/sonarcloud.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.3.2 not signed: https://api.github.com/repos/robtimus/ip-utils/releases/90599285","Warn: release artifact 1.3.1 not signed: https://api.github.com/repos/robtimus/ip-utils/releases/79521815","Warn: release artifact 1.3 not signed: https://api.github.com/repos/robtimus/ip-utils/releases/32502994","Warn: release artifact ip-utils-1.2 not signed: https://api.github.com/repos/robtimus/ip-utils/releases/18450563","Warn: release artifact ip-utils-1.1 not signed: https://api.github.com/repos/robtimus/ip-utils/releases/18397548","Warn: release artifact 1.3.2 does not have provenance: https://api.github.com/repos/robtimus/ip-utils/releases/90599285","Warn: release artifact 1.3.1 does not have provenance: https://api.github.com/repos/robtimus/ip-utils/releases/79521815","Warn: release artifact 1.3 does not have provenance: https://api.github.com/repos/robtimus/ip-utils/releases/32502994","Warn: release artifact ip-utils-1.2 does not have provenance: https://api.github.com/repos/robtimus/ip-utils/releases/18450563","Warn: release artifact ip-utils-1.1 does not have provenance: https://api.github.com/repos/robtimus/ip-utils/releases/18397548"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T13:06:36.134Z","repository_id":57722473,"created_at":"2025-08-17T13:06:36.134Z","updated_at":"2025-08-17T13:06:36.134Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27592457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-08T02:00:07.111Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ip","ip-address","ipv4","ipv6","java"],"created_at":"2024-11-17T06:34:07.689Z","updated_at":"2025-12-08T08:03:19.133Z","avatar_url":"https://github.com/robtimus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ip-utils\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.robtimus/ip-utils)](https://search.maven.org/artifact/com.github.robtimus/ip-utils)\n[![Build Status](https://github.com/robtimus/ip-utils/actions/workflows/build.yml/badge.svg)](https://github.com/robtimus/ip-utils/actions/workflows/build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Aip-utils\u0026metric=alert_status)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aip-utils)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Aip-utils\u0026metric=coverage)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aip-utils)\n[![Known Vulnerabilities](https://snyk.io/test/github/robtimus/ip-utils/badge.svg)](https://snyk.io/test/github/robtimus/ip-utils)\n\nA set of utility classes for working with IP addresses. Its most important features:\n\n## A lightweight IP address implementation\n\nAn [IP address implementation](https://robtimus.github.io/ip-utils/apidocs/com/github/robtimus/net/ip/IPAddress.html) that has the following advantages over [InetAddress](https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html):\n\n* It's very lightweight; for instance, it does not provide any functionality for hostname lookups or other functionality that requires network access.\n* Its factory methods support the more generic [CharSequence](https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html) instead of only [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html).\n* Its factory methods do not throw checked exceptions (like [UnknownHostException](https://docs.oracle.com/javase/8/docs/api/java/net/UnknownHostException.html)).\n* It supports native parsing to [Optional](https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html) without having to catch any exceptions.\n* It supports native parsing to `byte[]`.\n* It supports native parsing with [ParsePosition](https://docs.oracle.com/javase/8/docs/api/java/text/ParsePosition.html).\n* It is [Comparable](https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html).\n\nTo interact with existing code, it comes with bridge methods to convert to and from [InetAddress](https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html). This allows you to replace most occurrences of [InetAddress](https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html), [Inet4Address](https://docs.oracle.com/javase/8/docs/api/java/net/Inet4Address.html) and [Inet6Address](https://docs.oracle.com/javase/8/docs/api/java/net/Inet6Address.html) with [IPAddress](https://robtimus.github.io/ip-utils/apidocs/com/github/robtimus/net/ip/IPAddress.html), [IPv4Address](https://robtimus.github.io/ip-utils/apidocs/com/github/robtimus/net/ip/IPv4Address.html) and [IPv6Address](https://robtimus.github.io/ip-utils/apidocs/com/github/robtimus/net/ip/IPv6Address.html) respectively.\n\n## Efficient IP range and subnet implementations\n\nThis library makes it possible to create an IP range from two IP addresses, or a subnet from a CIDR notation or an IP address and prefix length. This IP range or subnet is an immutable [Collection](https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html) of IP addresses with possibly thousands of elements, without the need to store all of these IP addresses.\n\n## Bean Validation support\n\nThe [ip-validation](https://robtimus.github.io/ip-validation/) library uses this library to provide 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.\n\n## JSON support\n\nThe [ip-jackson-databind](https://robtimus.github.io/ip-jackson-databind/) library provides support for serializing and deserializing IP addresses and ranges using Jackson.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fip-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtimus%2Fip-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fip-utils/lists"}