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

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

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