Skip to content

Commit

Permalink
fix: fixed ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
zihluwang committed Aug 6, 2024
1 parent dad99dc commit 2b10eed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p>
* 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.
* <p>
* 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.
* <p>
* 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.
* <p>
* 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 2b10eed

Please sign in to comment.