com.mercateo.spring.security.jwt.token.claim.JWTClaims Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-jwt Show documentation
Show all versions of spring-security-jwt Show documentation
JWT authentication with spring security
package com.mercateo.spring.security.jwt.token.claim;
import com.mercateo.immutables.DataClass;
import org.immutables.value.Value;
import org.immutables.vavr.encodings.VavrEncodingEnabled;
import com.auth0.jwt.interfaces.DecodedJWT;
import io.vavr.collection.Map;
@Value.Immutable
@DataClass
public interface JWTClaims {
DecodedJWT token();
Map claims();
@Value.Default
default int verifiedCount() {
return 0;
}
static ImmutableJWTClaims.Builder builder() {
return ImmutableJWTClaims.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy