Class JwtReconstruction

    • Constructor Detail

      • JwtReconstruction

        public JwtReconstruction()
    • Method Detail

      • reconstructJwt

        public <T extends Jwt> T reconstructJwt​(String jwtString,
                                                Class<T> jwtClass)
        Reconstructs the given JWT string into a JWT object of the specified type.
        Type Parameters:
        T - The type of JWT the JWT string represents.
        Parameters:
        jwtString - The JWT string.
        jwtClass - The JWT class to reconstruct the JWT string to.
        Returns:
        The reconstructed JWT object.
        Throws:
        InvalidJwtException - If the jwt does not consist of the correct number of parts or is malformed.
        JwtReconstructionException - If the jwt does not consist of the correct number of parts.