feat: Moved package name from cn.org.codecrafters to com.onixbyte
This commit is contained in:
@@ -45,7 +45,7 @@ implementation 'cn.org.codecrafters:simple-jwt-authzero:${simple-jwt-authzero.ve
|
||||
|
||||
## Use the `JjwtTokenResolver`
|
||||
|
||||
We have implemented `TokenResolver` to make sure you can add JWT to your Java application as soon as possible. All you need to do is to create an instance of `cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver` and other operations to JWT could follow our instruction in [`simple-jwt-facade`](../simple-jwt-facade/README.md).
|
||||
We have implemented `TokenResolver` to make sure you can add JWT to your Java application as soon as possible. All you need to do is to create an instance of `jjwt.com.onixbyte.simplejwt.JjwtTokenResolver` and other operations to JWT could follow our instruction in [`simple-jwt-facade`](../simple-jwt-facade/README.md).
|
||||
|
||||
## Contact
|
||||
|
||||
|
||||
+12
-12
@@ -15,19 +15,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package cn.org.codecrafters.simplejwt.jjwt;
|
||||
package com.onixbyte.simplejwt.jjwt;
|
||||
|
||||
import cn.org.codecrafters.devkit.utils.MapUtil;
|
||||
import cn.org.codecrafters.guid.GuidCreator;
|
||||
import cn.org.codecrafters.simplejwt.SecretCreator;
|
||||
import cn.org.codecrafters.simplejwt.TokenPayload;
|
||||
import cn.org.codecrafters.simplejwt.TokenResolver;
|
||||
import cn.org.codecrafters.simplejwt.annotations.ExcludeFromPayload;
|
||||
import cn.org.codecrafters.simplejwt.annotations.TokenEnum;
|
||||
import cn.org.codecrafters.simplejwt.constants.PredefinedKeys;
|
||||
import cn.org.codecrafters.simplejwt.constants.TokenAlgorithm;
|
||||
import cn.org.codecrafters.simplejwt.exceptions.WeakSecretException;
|
||||
import cn.org.codecrafters.simplejwt.jjwt.config.JjwtTokenResolverConfig;
|
||||
import com.onixbyte.devkit.utils.MapUtil;
|
||||
import com.onixbyte.guid.GuidCreator;
|
||||
import com.onixbyte.simplejwt.SecretCreator;
|
||||
import com.onixbyte.simplejwt.TokenPayload;
|
||||
import com.onixbyte.simplejwt.TokenResolver;
|
||||
import com.onixbyte.simplejwt.annotations.ExcludeFromPayload;
|
||||
import com.onixbyte.simplejwt.annotations.TokenEnum;
|
||||
import com.onixbyte.simplejwt.constants.PredefinedKeys;
|
||||
import com.onixbyte.simplejwt.constants.TokenAlgorithm;
|
||||
import com.onixbyte.simplejwt.exceptions.WeakSecretException;
|
||||
import com.onixbyte.simplejwt.jjwt.config.JjwtTokenResolverConfig;
|
||||
import io.jsonwebtoken.Claims;
|
||||
import io.jsonwebtoken.Jws;
|
||||
import io.jsonwebtoken.Jwts;
|
||||
+6
-8
@@ -15,16 +15,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package cn.org.codecrafters.simplejwt.jjwt.config;
|
||||
package com.onixbyte.simplejwt.jjwt.config;
|
||||
|
||||
import cn.org.codecrafters.simplejwt.TokenResolver;
|
||||
import cn.org.codecrafters.simplejwt.config.TokenResolverConfig;
|
||||
import cn.org.codecrafters.simplejwt.constants.TokenAlgorithm;
|
||||
import cn.org.codecrafters.simplejwt.exceptions.UnsupportedAlgorithmException;
|
||||
import cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver;
|
||||
import com.onixbyte.simplejwt.TokenResolver;
|
||||
import com.onixbyte.simplejwt.config.TokenResolverConfig;
|
||||
import com.onixbyte.simplejwt.constants.TokenAlgorithm;
|
||||
import com.onixbyte.simplejwt.exceptions.UnsupportedAlgorithmException;
|
||||
import com.onixbyte.simplejwt.jjwt.JjwtTokenResolver;
|
||||
import io.jsonwebtoken.Jwts;
|
||||
import io.jsonwebtoken.SignatureAlgorithm;
|
||||
import io.jsonwebtoken.security.MacAlgorithm;
|
||||
import io.jsonwebtoken.security.SecureDigestAlgorithm;
|
||||
|
||||
import javax.crypto.SecretKey;
|
||||
+8
-8
@@ -18,36 +18,36 @@
|
||||
/**
|
||||
* The package {@code cn.org.codecrafters.simplejwt.jjwt.config} contains
|
||||
* configuration classes related to the {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver}
|
||||
* com.onixbyte.simplejwt.jjwt.JjwtTokenResolver}
|
||||
* implementation.
|
||||
* <p>
|
||||
* The classes in this package provide configuration options and settings for
|
||||
* the {@link cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver},
|
||||
* the {@link com.onixbyte.simplejwt.jjwt.JjwtTokenResolver},
|
||||
* which is used for resolving JSON Web Tokens (JWT) using the Auth0 library.
|
||||
* <p>
|
||||
* The {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.config.JjwtTokenResolverConfig}
|
||||
* com.onixbyte.simplejwt.jjwt.config.JjwtTokenResolverConfig}
|
||||
* class is a configuration class that defines the mapping between standard
|
||||
* {@link cn.org.codecrafters.simplejwt.constants.TokenAlgorithm} and the
|
||||
* {@link com.onixbyte.simplejwt.constants.TokenAlgorithm} and the
|
||||
* corresponding function implementation used by {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver} for handling
|
||||
* com.onixbyte.simplejwt.jjwt.JjwtTokenResolver} for handling
|
||||
* JWT algorithms. It enables developers to specify and customize the
|
||||
* algorithm functions according to the chosen JWT algorithm and the library
|
||||
* being used.
|
||||
* <p>
|
||||
* The configuration options in this package help developers integrate and
|
||||
* configure the {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver} seamlessly
|
||||
* com.onixbyte.simplejwt.jjwt.JjwtTokenResolver} seamlessly
|
||||
* into their Spring Boot applications. Developers can fine-tune the token
|
||||
* resolution process and customize algorithm handling to align with their
|
||||
* specific requirements and desired level of security.
|
||||
* <p>
|
||||
* It is recommended to explore the classes in this package to understand how
|
||||
* to configure and use the {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver} effectively
|
||||
* com.onixbyte.simplejwt.jjwt.JjwtTokenResolver} effectively
|
||||
* in the Spring Boot environment to handle JWT authentication and
|
||||
* authorisation securely and efficiently.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
package cn.org.codecrafters.simplejwt.jjwt.config;
|
||||
package com.onixbyte.simplejwt.jjwt.config;
|
||||
+7
-7
@@ -25,27 +25,27 @@
|
||||
* the {@code io.jsonwebtoken:jjwt-api} library.
|
||||
* <p>
|
||||
* The main class in this package is the {@link
|
||||
* cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver}, which
|
||||
* implements the {@link cn.org.codecrafters.simplejwt.TokenResolver} interface
|
||||
* com.onixbyte.simplejwt.jjwt.JjwtTokenResolver}, which
|
||||
* implements the {@link com.onixbyte.simplejwt.TokenResolver} interface
|
||||
* and uses the {@code io.jsonwebtoken:jjwt-api} library to handle JWT
|
||||
* operations. It provides the functionality to create, validate, and extract
|
||||
* JWTs using the {@code io.jsonwebtoken:jjwt-api} library. Developers can use
|
||||
* this class as the main token resolver in the Simple JWT project when
|
||||
* integrating {@code io.jsonwebtoken:jjwt-api} as the JWT management library.
|
||||
* <p>
|
||||
* The {@link cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver} relies on
|
||||
* The {@link com.onixbyte.simplejwt.jjwt.JjwtTokenResolver} relies on
|
||||
* the {@code io.jsonwebtoken:jjwt-api}
|
||||
* library to handle the underlying JWT operations, including token creation,
|
||||
* validation, and extraction. It utilizes the {@code io.jsonwebtoken:jjwt-api}
|
||||
* {@link io.jsonwebtoken.SignatureAlgorithm} class to define and use different
|
||||
* algorithms for JWT signing and verification.
|
||||
* <p>
|
||||
* To use the {@link cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver},
|
||||
* To use the {@link com.onixbyte.simplejwt.jjwt.JjwtTokenResolver},
|
||||
* developers must provide the necessary configurations and dependencies, such
|
||||
* as the {@link cn.org.codecrafters.guid.GuidCreator} for generating unique
|
||||
* 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 cn.org.codecrafters.simplejwt.jjwt.config.JjwtTokenResolverConfig}
|
||||
* {@link com.onixbyte.simplejwt.jjwt.config.JjwtTokenResolverConfig}
|
||||
* class provides a convenient way to configure these dependencies.
|
||||
* <p>
|
||||
* Developers using the {@code io.jsonwebtoken:jjwt-api} integration should be
|
||||
@@ -55,4 +55,4 @@
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
package cn.org.codecrafters.simplejwt.jjwt;
|
||||
package com.onixbyte.simplejwt.jjwt;
|
||||
Reference in New Issue
Block a user