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.oauth2.sdk.http; 019 020 021import javax.mail.internet.ContentType; 022import javax.mail.internet.ParameterList; 023 024 025/** 026 * Common content types used in the OAuth 2.0 protocol and implementing 027 * applications. The character set all of content types is set to 028 * {@link #DEFAULT_CHARSET UTF-8}. 029 */ 030@Deprecated 031public final class CommonContentTypes { 032 033 034 /** 035 * The default character set. 036 */ 037 @Deprecated 038 public static final String DEFAULT_CHARSET = "UTF-8"; 039 040 041 /** 042 * The default content type parameter list. 043 */ 044 @Deprecated 045 private static final ParameterList PARAM_LIST = new ParameterList(); 046 047 048 /** 049 * Content type {@code application/json}. 050 */ 051 @Deprecated 052 public static final ContentType APPLICATION_JSON = new ContentType("application", "json", PARAM_LIST); 053 054 055 /** 056 * Content type {@code application/jose}. 057 */ 058 @Deprecated 059 public static final ContentType APPLICATION_JOSE = new ContentType("application", "jose", PARAM_LIST); 060 061 062 /** 063 * Content type {@code application/jwt}. 064 */ 065 @Deprecated 066 public static final ContentType APPLICATION_JWT = new ContentType("application", "jwt", PARAM_LIST); 067 068 069 /** 070 * Content type {@code application/x-www-form-urlencoded}. 071 */ 072 @Deprecated 073 public static final ContentType APPLICATION_URLENCODED = new ContentType("application", "x-www-form-urlencoded", PARAM_LIST); 074 075 076 static { 077 PARAM_LIST.set("charset", DEFAULT_CHARSET); 078 } 079}