Class Claims

public class Claims

Structured claims presented with the credential. JWTs include `{key: value}` pairs for standard and private claims. The following is a subset of the standard required and optional claims that would typically be presented for a Google-based JWT: {'iss': 'accounts.google.com', 'sub': '113289723416554971153', 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp': 1353604926} SAML assertions are similarly specified, but with an identity provider dependent structure.

Inheritance

java.lang.Object > Claims

Constructors

Claims()

public Claims()

Methods

getFields()

public Map<String,Map<String,Object>> getFields()

Unordered map of dynamically typed values.

Returns
TypeDescription
Map<String,Map<String,java.lang.Object>>

setFields(Map<String,Map<String,Object>> value)

public void setFields(Map<String,Map<String,Object>> value)
Parameter
NameDescription
valueMap<String,Map<String,java.lang.Object>>