001package com.nimbusds.oauth2.sdk.jose.jwk;
002
003
004import com.nimbusds.oauth2.sdk.id.Identifier;
005import net.jcip.annotations.ThreadSafe;
006
007
008/**
009 * Abstract JSON Web Key (JWK) selector.
010 */
011@ThreadSafe
012@Deprecated
013public abstract class AbstractJWKSelector {
014
015
016        /**
017         * Identifier for the JWK selector.
018         */
019        private final Identifier id;
020
021
022        /**
023         * Creates a new abstract JWK selector.
024         *
025         * @param id Identifier for the JWK selector. Must not be {@code null}.
026         */
027        public AbstractJWKSelector(final Identifier id) {
028                if (id == null) {
029                        throw new IllegalArgumentException("The identifier must not be null");
030                }
031                this.id = id;
032        }
033
034
035        /**
036         * Returns the the identifier for the JWK selector.
037         *
038         * @return The identifier.
039         */
040        public Identifier getIdentifier() {
041                return id;
042        }
043}