This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from litetex-oss/dev
Release
- Loading branch information
Showing
33 changed files
with
3,029 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 1.0.3 | ||
* Updated dependencies | ||
* Migrated repository to organization | ||
|
||
# 1.0.2 | ||
* Updated dependencies | ||
|
||
# 1.0.1 | ||
* Added more fields to response | ||
* Updated dependencies | ||
|
||
# 1.0.0 | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
[![Latest version](https://img.shields.io/maven-central/v/net.litetex/standard-maven-template?logo=apache%20maven)](https://mvnrepository.com/artifact/net.litetex/standard-maven-template) | ||
[![Build](https://img.shields.io/github/actions/workflow/status/litetex-oss/standard-maven-template/checkBuild.yml?branch=develop)](https://github.com/litetex-oss/standard-maven-template/actions/workflows/checkBuild.yml?query=branch%3Adevelop) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=litetex-oss_standard-maven-template&metric=alert_status)](https://sonarcloud.io/dashboard?id=litetex-oss_standard-maven-template) | ||
[![Latest version](https://img.shields.io/maven-central/v/net.litetex/crt-sh-client?logo=apache%20maven)](https://mvnrepository.com/artifact/net.litetex/crt-sh-client) | ||
[![Build](https://img.shields.io/github/actions/workflow/status/litetex-oss/crt-sh-client/checkBuild.yml?branch=dev)](https://github.com/litetex-oss/crt-sh-client/actions/workflows/checkBuild.yml?query=branch%3Adev) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=litetex_crt-sh-client&metric=alert_status)](https://sonarcloud.io/dashboard?id=litetex_crt-sh-client) | ||
[![API Specification Editor](https://img.shields.io/badge/API--Spec-Editor-85ea2d?logo=swagger)](https://editor.swagger.io/?url=https://raw.githubusercontent.com/litetex-oss/crt-sh-client/dev/openapi/openapi.yml) | ||
[![crt.sh Website](https://img.shields.io/website?up_color=00b373&url=https%3A%2F%2Fcrt.sh&label=crt.sh%20Website)](https://crt.sh) | ||
|
||
# standard-maven-template | ||
# <img src="https://crt.sh/favicon.ico" height="28" /> [crt-sh](https://crt.sh)-client | ||
|
||
A Java client for [crt.sh](https://crt.sh). | ||
|
||
This client [is generated](./crt-sh-client/pom.xml) from an [``openapi.yml``](./openapi/openapi.yml) using [OpenAPI Generator](https://openapi-generator.tech/). | ||
|
||
## Installation | ||
[Installation guide for the latest release](https://github.com/litetex-oss/standard-maven-template/releases/latest#Installation) | ||
|
||
## Demo | ||
A minimal demo is also available [here](./crt-sh-client-demo/src/main/java/net/litetex/Application.java). | ||
|
||
## Contributing | ||
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project. | ||
|
||
## Dependencies and Licenses | ||
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://litetex-oss.github.io/standard-maven-template/dependencies/) | ||
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://litetex-oss.github.io/crt-sh-client/dependencies/) | ||
|
||
<sub>Disclaimer: This is not an official crt.sh product and not associated with crt.sh</sub> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
crt-sh-client-demo/src/main/java/net/litetex/Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package net.litetex; | ||
|
||
import java.util.List; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import net.litetex.crtsh.api.SearchApi; | ||
import net.litetex.crtsh.model.Certificate; | ||
|
||
|
||
public final class Application | ||
{ | ||
public static final Logger LOG = LoggerFactory.getLogger(Application.class); | ||
|
||
private Application() | ||
{ | ||
} | ||
|
||
public static void main(final String[] args) | ||
{ | ||
final SearchApi searchApi = new SearchApi(); | ||
|
||
LOG.info("=== SEARCH ==="); | ||
final List<Certificate> certificates = searchApi.search( | ||
"json", | ||
"example.org", | ||
"expired", | ||
"Y", | ||
null, | ||
null); | ||
LOG.info("Certificates: {}", certificates); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE Configuration> | ||
<Configuration status="ERROR"> | ||
|
||
<Properties> | ||
<Property name="consolePattern">%d{HH:mm:ss} %-5p [%t] [%-25.25c] %m %n</Property> | ||
</Properties> | ||
|
||
<Appenders> | ||
<Console name="stdout" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="${consolePattern}" /> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="stdout"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
Oops, something went wrong.