docs: added JavaDoc
This commit is contained in:
@@ -233,7 +233,7 @@ public class JjwtTokenResolver implements TokenResolver<Jws<Claims>> {
|
||||
* token
|
||||
* @return the generated token as a {@code String} or {@code null} if
|
||||
* creation fails
|
||||
* @see MapUtil#objectToMap(Object)
|
||||
* @see MapUtil#objectToMap(Object, Map)
|
||||
*/
|
||||
@Override
|
||||
public <T extends TokenPayload> String createToken(Duration expireAfter, String audience, String subject, T payload) {
|
||||
@@ -291,7 +291,7 @@ public class JjwtTokenResolver implements TokenResolver<Jws<Claims>> {
|
||||
* @param targetType the target class representing the payload data type
|
||||
* @return an instance of the specified target type with the extracted
|
||||
* payload data, or {@code null} if extraction fails.
|
||||
* @see MapUtil#mapToObject(Map, Class)
|
||||
* @see MapUtil#mapToObject(Map, Object, Map)
|
||||
*/
|
||||
@Override
|
||||
public <T extends TokenPayload> T extract(String token, Class<T> targetType) {
|
||||
|
||||
+4
@@ -61,6 +61,10 @@ import java.util.Map;
|
||||
*/
|
||||
public final class JjwtTokenResolverConfig implements TokenResolverConfig<SecureDigestAlgorithm<SecretKey, SecretKey>> {
|
||||
|
||||
/**
|
||||
* Get the instance for io.jsonwebtoken:jjwt config.
|
||||
* @return the instance for io.jsonwebtoken:jjwt config
|
||||
*/
|
||||
public static JjwtTokenResolverConfig getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new JjwtTokenResolverConfig();
|
||||
|
||||
Reference in New Issue
Block a user