Skip to content

Commit

Permalink
Add application/jwt MediaType
Browse files Browse the repository at this point in the history
RELNOTES=`net`: Added the `MediaType` constant for JWT.
PiperOrigin-RevId: 466457054
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Aug 9, 2022
1 parent 2c72146 commit f942fd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ private static MediaType addKnownType(MediaType mediaType) {

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

/**
* For <a href="https://tools.ietf.org/html/7519">JWT objects using the compact Serialization</a>.
*
* @since NEXT
*/
public static final MediaType JWT = createConstant(APPLICATION_TYPE, "jwt");

/**
* The <a href="http://www.w3.org/TR/appmanifest/">Manifest for a web application</a>.
*
Expand Down
7 changes: 7 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ private static MediaType addKnownType(MediaType mediaType) {

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

/**
* For <a href="https://tools.ietf.org/html/7519">JWT objects using the compact Serialization</a>.
*
* @since NEXT
*/
public static final MediaType JWT = createConstant(APPLICATION_TYPE, "jwt");

/**
* The <a href="http://www.w3.org/TR/appmanifest/">Manifest for a web application</a>.
*
Expand Down

0 comments on commit f942fd2

Please sign in to comment.