diff --git a/README.md b/README.md index a2a40ed..1e13370 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,7 @@ the token should look like this: `exp=1578566241~acl=/*~hmac=95add7c04faa2e7831 Send an HTTPS GET request: https://rep.checkpoint.com/rep-auth/service/v1.0/request -Use the "Client-Key" header. If you don't have a Client-Key, ask for one -from the Reputation Service team. (otherwise you will get HTTP status -401) +Use the "Client-Key" header. (otherwise you will get HTTP status 401) **how do I know that the token expired?** @@ -60,8 +58,7 @@ request: https://rep.checkpoint.com/url-rep/service/v2.0/query?resource=http:// request headers:  - - "Client-Key":  If you don't have a Client-Key, ask for one from the - reputation service team. + - "Client-Key":  You authorization id. - "token": the token from the rep-auth service. @@ -108,8 +105,7 @@ request: https://rep.checkpoint.com/file-rep/service/v2.0/query?resource=71b6bb request headers:  - - "Client-Key":  If you don't have a Client-Key, ask for one from the - reputation service team. + - "Client-Key":  You authorization id. - "token": the token from the rep-auth service. @@ -149,8 +145,7 @@ request: https://rep.checkpoint.com/ip-rep/service/v2.0/query?resource=8.8.8.8 request headers:  - - "Client-Key":  If you don't have a Client-Key, ask for one from the - reputation service team. + - "Client-Key":  You authorization id. - "token": the token from the **rep-auth** service. diff --git a/java/README.md b/java/README.md index 42da903..a9added 100644 --- a/java/README.md +++ b/java/README.md @@ -9,12 +9,12 @@ The jar prints to screen the result of the resource. mvn install ``` -The *jar* will be in `target/reputation-service-api-x.y.z.jar` where `x.y.z` is the version number. +The *jar* will be in `target/reputation-service-api-x.y.z-jar-with-dependencies.jar` where `x.y.z` is the version number. ## Usage ``` -# java -jar reputation-service-api-1.0.0.jar --help +# java -jar reputation-service-api-1.0.0-jar-with-dependencies.jar --help Usage:
[options] Options: * -ck, --client-key @@ -36,19 +36,19 @@ Usage:
[options] ### Simple use ``` -# java -jar reputation-service-api-1.0.0.jar -s ip -r 8.8.8.8 -ck +# java -jar reputation-service-api-1.0.0-jar-with-dependencies.jar -s ip -r 8.8.8.8 -ck 8.8.8.8 is Benign with risk 0/100 ``` ``` -# java -jar reputation-service-api-1.0.0.jar -s url -r https://secure08c-chase.000webhostapp.com/web/auth/enrollment/ -ck +# java -jar reputation-service-api-1.0.0-jar-with-dependencies.jar -s url -r https://secure08c-chase.000webhostapp.com/web/auth/enrollment/ -ck https://secure08c-chase.000webhostapp.com/web/auth/enrollment/ is Phishing with risk 100/100 ``` ### With `--verbose` ``` -# java -jar reputation-service-api-1.0.0.jar -s ip -r 8.8.8.8 -ck -v +# java -jar reputation-service-api-1.0.0-jar-with-dependencies.jar -s ip -r 8.8.8.8 -ck -v first, let's get token from rep-auth success! now, let's query reputation @@ -89,7 +89,7 @@ your response is: 8.8.8.8 is Benign with risk 0/100 ``` ``` -# java -jar reputation-service-api-1.0.0.jar -s url -r https://secure08c-chase.000webhostapp.com/web/auth/enrollment/ -ck -v +# java -jar reputation-service-api-1.0.0-jar-with-dependencies.jar -s url -r https://secure08c-chase.000webhostapp.com/web/auth/enrollment/ -ck -v first, let's get token from rep-auth success! now, let's query reputation diff --git a/java/pom.xml b/java/pom.xml index a003a63..aadfbd3 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -55,34 +55,22 @@ - org.apache.maven.plugins - maven-dependency-plugin + maven-assembly-plugin + 3.2.0 - copy-dependencies - prepare-package + package - copy-dependencies + single - - ${project.build.directory}/lib - false - false - true - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 + + jar-with-dependencies + - true - lib/ com.checkpoint.reputation.App