Skip to content

Commit f942fd2

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedAug 9, 2022
Add application/jwt MediaType
RELNOTES=`net`: Added the `MediaType` constant for JWT. PiperOrigin-RevId: 466457054
1 parent 2c72146 commit f942fd2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎android/guava/src/com/google/common/net/MediaType.java

+7
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,13 @@ private static MediaType addKnownType(MediaType mediaType) {
491491

492492
public static final MediaType JSON_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "json");
493493

494+
/**
495+
* For <a href="https://tools.ietf.org/html/7519">JWT objects using the compact Serialization</a>.
496+
*
497+
* @since NEXT
498+
*/
499+
public static final MediaType JWT = createConstant(APPLICATION_TYPE, "jwt");
500+
494501
/**
495502
* The <a href="http://www.w3.org/TR/appmanifest/">Manifest for a web application</a>.
496503
*

‎guava/src/com/google/common/net/MediaType.java

+7
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,13 @@ private static MediaType addKnownType(MediaType mediaType) {
491491

492492
public static final MediaType JSON_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "json");
493493

494+
/**
495+
* For <a href="https://tools.ietf.org/html/7519">JWT objects using the compact Serialization</a>.
496+
*
497+
* @since NEXT
498+
*/
499+
public static final MediaType JWT = createConstant(APPLICATION_TYPE, "jwt");
500+
494501
/**
495502
* The <a href="http://www.w3.org/TR/appmanifest/">Manifest for a web application</a>.
496503
*

0 commit comments

Comments
 (0)
Please sign in to comment.