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

com.mercateo.spring.security.jwt.token.claim.JWTClaim Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
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