All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.org.codecrafters.simplejwt.jjwt.package-info Maven / Gradle / Ivy

/*
 * Copyright (C) 2023 CodeCraftersCN.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * This package contains classes related to the integration of the {@code
 * io.jsonwebtoken:jjwt-api} library in the Simple JWT project. {@code
 * io.jsonwebtoken:jjwt-api} 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 io.jsonwebtoken:jjwt-api} library.
 * 

* 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 * 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. *

* The {@link cn.org.codecrafters.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. *

* To use the {@link cn.org.codecrafters.simplejwt.jjwt.JjwtTokenResolver}, * developers must provide the necessary configurations and dependencies, such * as the {@link cn.org.codecrafters.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} * class provides a convenient way to configure these dependencies. *

* Developers using the {@code io.jsonwebtoken:jjwt-api} integration should be * familiar with the concepts and usage of the {@code io.jsonwebtoken:jjwt-api} * library and follow the official {@code io.jsonwebtoken:jjwt-api} * documentation for best practices and security considerations. * * @since 1.0.0 */ package cn.org.codecrafters.simplejwt.jjwt;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy