001package com.nimbusds.common.appendable;
002
003
004/**
005 * Key extractor, intended for {@link JSONObjectWriter} use.
006 *
007 * <p>Use {@link com.nimbusds.common.json.KeyExtractor}.
008 */
009@Deprecated
010public interface KeyExtractor<T> {
011
012
013        /**
014         * Extracts or determines a JSON object key from the specified object.
015         *
016         * @param object The object. Must not be {@code null}.
017         *
018         * @return The JSON object key, {@code null} if extraction failed.
019         */
020        String extractKey(final T object);
021}