MCPcopy Create free account
hub / github.com/auth0/JWTDecode.Android / getClaim

Method getClaim

lib/src/main/java/com/auth0/android/jwt/JWT.java:140–143  ·  view source on GitHub ↗

Get a Claim given it's name. If the Claim wasn't specified in the JWT payload, a BaseClaim will be returned. @param name the name of the Claim to retrieve. @return a valid Claim.

(@NonNull String name)

Source from the content-addressed store, hash-verified

138 * @return a valid Claim.
139 */
140 @NonNull
141 public Claim getClaim(@NonNull String name) {
142 return payload.claimForName(name);
143 }
144
145 /**
146 * Get all the Claims.

Calls 1

claimForNameMethod · 0.80