001/* 002 * oauth2-oidc-sdk 003 * 004 * Copyright 2012-2016, Connect2id Ltd and contributors. 005 * 006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use 007 * this file except in compliance with the License. You may obtain a copy of the 008 * License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software distributed 013 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 014 * CONDITIONS OF ANY KIND, either express or implied. See the License for the 015 * specific language governing permissions and limitations under the License. 016 */ 017 018package com.nimbusds.openid.connect.sdk; 019 020 021import net.jcip.annotations.Immutable; 022 023import com.nimbusds.oauth2.sdk.ResponseType; 024 025 026/** 027 * OpenID Connect {@link #ID_TOKEN id_token} response type value constant. 028 * 029 * <p>Related specifications: 030 * 031 * <ul> 032 * <li>OpenID Connect Core 1.0, sections 2 and 3.1.2.1. 033 * <li>OAuth 2.0 Multiple Response Type Encoding Practices. 034 * <li>OAuth 2.0 (RFC 6749), sections 3.1.1 and 4.1.1. 035 * </ul> 036 */ 037@Immutable 038public class OIDCResponseTypeValue { 039 040 041 /** 042 * ID Token response type. 043 */ 044 public static final ResponseType.Value ID_TOKEN = new ResponseType.Value("id_token"); 045 046 047 /** 048 * None response type, should not be combined with other response type 049 * values. 050 */ 051 public static final ResponseType.Value NONE = new ResponseType.Value("none"); 052 053 054 /** 055 * Prevents public instantiation. 056 */ 057 private OIDCResponseTypeValue() { } 058}