001package com.nimbusds.jose; 002 003 004/** 005 * Generic payload type transformer. Implementations should be tread-safe. 006 */ 007public interface PayloadTransformer<T> { 008 009 010 /** 011 * Transforms the specified payload into the desired type. 012 * 013 * @param payload The payload. Not {@code null}. 014 * 015 * @return The desired type. 016 */ 017 T transform(final Payload payload); 018}