fix: fixed ci error
This commit is contained in:
+19
-33
@@ -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
|
||||
*/
|
||||
|
||||
-7
@@ -30,11 +30,4 @@ import java.time.Duration;
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user