001package com.nimbusds.oauth2.sdk.auth.verifier; 002 003 004import net.jcip.annotations.ThreadSafe; 005 006 007/** 008 * Generic context for passing objects. 009 */ 010@ThreadSafe 011public class Context<T> { 012 013 014 /** 015 * The context content. 016 */ 017 private T o; 018 019 020 /** 021 * Sets the context content. 022 * 023 * @param o The context content. 024 */ 025 public void set(final T o) { 026 027 this.o = o; 028 } 029 030 031 /** 032 * Gets the context content. 033 * 034 * @return The context content. 035 */ 036 public T get() { 037 038 return o; 039 } 040}