From 2b10eed1d92f20ab53854ab792baeacc462f928c Mon Sep 17 00:00:00 2001 From: zihluwang Date: Tue, 6 Aug 2024 22:14:23 +0800 Subject: [PATCH] fix: fixed ci error --- .../simplejwt/authzero/package-info.java | 52 +++++++------------ .../test/TestAuthzeroTokenResolver.java | 7 --- 2 files changed, 19 insertions(+), 40 deletions(-) diff --git a/simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero/package-info.java b/simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero/package-info.java index 58de404..d9832ff 100644 --- a/simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero/package-info.java +++ b/simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero/package-info.java @@ -16,43 +16,29 @@ */ /** - * This package contains classes related to the integration of the {@code - * com.auth0:java-jwt} library in the Simple JWT project. {@code - * com.auth0:java-jwt} is a powerful and widely-used Identity as a Service - * (IDaaS) platform that provides secure authentication and authorisation - * solutions for web and mobile applications. The classes in this package - * provide the necessary functionality to handle JSON Web Tokens (JWTs) using - * the {@code com.auth0:java-jwt} library. + * This package contains classes related to the integration of the {@code com.auth0:java-jwt} + * library in the Simple JWT project. {@code com.auth0:java-jwt} is a powerful and widely-used + * identity as a Service (IDaaS) platform that provides secure authentication and authorisation + * solutions for web and mobile applications. The classes in this package provide the necessary + * functionality to handle JSON Web Tokens (JWTs) using the {@code com.auth0:java-jwt} library. *

* The main class in this package is the {@link - * com.onixbyte.simplejwt.authzero.AuthzeroTokenResolver}, which - * implements the {@link com.onixbyte.simplejwt.TokenResolver} interface - * and uses the {@code com.auth0:java-jwt} library to handle JWT operations. It - * provides the functionality to create, validate, and extract JWTs using the - * {@code com.auth0:java-jwt} library. Developers can use this class as the - * main token resolver in the Simple JWT project when integrating {@code - * com.auth0:java-jwt} as the JWT management library. + * com.onixbyte.simplejwt.authzero.AuthzeroTokenResolver}, which implements the + * {@link com.onixbyte.simplejwt.TokenResolver} interface and uses the {@code com.auth0:java-jwt} + * library to handle JWT operations. It provides the functionality to create, validate, and extract + * JWTs using the {@code com.auth0:java-jwt} library. Developers can use this class as the main + * token resolver in the Simple JWT project when integrating {@code com.auth0:java-jwt} as the + * JWT management library. *

- * The {@link com.onixbyte.simplejwt.authzero.AuthzeroTokenResolver} - * relies on the {@code com.auth0:java-jwt} library to handle the underlying - * JWT operations, including token creation, validation, and extraction. It - * utilizes the {@code com.auth0:java-jwt} {@link - * com.auth0.jwt.algorithms.Algorithm} class to define and use different - * algorithms for JWT signing and verification. + * The {@link com.onixbyte.simplejwt.authzero.AuthzeroTokenResolver} relies on the + * {@code com.auth0:java-jwt} library to handle the underlying JWT operations, including token + * creation, validation, and extraction. It utilizes the {@code com.auth0:java-jwt} + * {@link com.auth0.jwt.algorithms.Algorithm} class to define and use different algorithms for + * JWT signing and verification. *

- * To use the {@link - * com.onixbyte.simplejwt.authzero.AuthzeroTokenResolver}, developers - * must provide the necessary configurations and dependencies, such as the - * {@link com.onixbyte.guid.GuidCreator} for generating unique JWT IDs - * (JTI), the supported algorithm function, the issuer name, and the secret key - * used for token signing and validation. The {@link - * com.onixbyte.simplejwt.authzero.config.AuthzeroTokenResolverConfig} - * class provides a convenient way to configure these dependencies. - *

- * Developers using the {@code com.auth0:java-jwt} integration should be - * familiar with the concepts and usage of the {@code com.auth0:java-jwt} - * library and follow the official {@code com.auth0:java-jwt} documentation for - * best practices and security considerations. + * Developers using the {@code com.auth0:java-jwt} integration should be familiar with the concepts + * and usage of the {@code com.auth0:java-jwt} library and follow the official + * {@code com.auth0:java-jwt} documentation for best practices and security considerations. * * @since 1.0.0 */ diff --git a/simple-jwt-authzero/src/test/java/com/onixbyte/simplejwt/authzero/test/TestAuthzeroTokenResolver.java b/simple-jwt-authzero/src/test/java/com/onixbyte/simplejwt/authzero/test/TestAuthzeroTokenResolver.java index c4461f5..be09ef3 100644 --- a/simple-jwt-authzero/src/test/java/com/onixbyte/simplejwt/authzero/test/TestAuthzeroTokenResolver.java +++ b/simple-jwt-authzero/src/test/java/com/onixbyte/simplejwt/authzero/test/TestAuthzeroTokenResolver.java @@ -30,11 +30,4 @@ */ public class TestAuthzeroTokenResolver { - @Test - public void test01() { - var tokenResolver = new AuthzeroTokenResolver(TokenAlgorithm.HS384, "Test Issuer", "Test Secret"); - var testToken = tokenResolver.createToken(Duration.ofMinutes(30), "Test Audience", "User00001"); - System.out.println(testToken); - } - }