com.mercateo.spring.security.jwt.token.claim.JWTClaim 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 org.immutables.value.Value;
import com.mercateo.immutables.DataClass;
import io.vavr.control.Option;
@Value.Immutable
@DataClass
public interface JWTClaim {
String name();
String value();
@Value.Default
default String issuer() {
return "";
}
@Value.Default
default boolean verified() {
return false;
}
Option innerClaim();
@Value.Default
default int depth() {
return 0;
}
static ImmutableJWTClaim.Builder builder() {
return ImmutableJWTClaim.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy