Android SDK Version
All Implemented Interfaces:
android.os.Parcelable


public final class AuthenticationTokenClaims
 implements Parcelable
This class represents an immutable claims for using AuthenticationToken. It includes all metadata or key values of the claims
WARNING: This feature is currently in development and not intended for external usage.
Nested Class Summary
Modifier and TypeClassDescription
public classAuthenticationTokenClaims.Companion
Field Summary
Modifier and TypeFieldDescription
private final Stringjti
private final Stringiss
private final Stringaud
private final Stringnonce
private final Longexp
private final Longiat
private final Stringsub
private final Stringname
private final StringgivenName
private final StringmiddleName
private final StringfamilyName
private final Stringemail
private final Stringpicture
private final Set<String>userFriends
private final StringuserBirthday
private final Map<String, Integer>userAgeRange
private final Map<String, String>userHometown
private final Map<String, String>userLocation
private final StringuserGender
private final StringuserLink
Constructor Summary
ConstructorDescription
AuthenticationTokenClaims(String encodedClaims, String expectedNonce)
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation, String userGender, String userLink)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation, String userGender)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name)Creates a the claims component of
AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub)Creates a the claims component of
Method Summary
Modifier and TypeMethodDescription
final StringgetJti() Get a unique identifier for the token.
final StringgetIss() Get issuer Identifier for the Issuer of the response.
final StringgetAud() Get audience(s) that this ID Token is intended for.
final StringgetNonce() String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
final LonggetExp() Expiration time (in seconds) on or after which the ID Token MUST NOT be accepted for processing.
final LonggetIat() Time (in seconds) at which the JWT was issued.
final StringgetSub() Subject - Identifier for the End-User at the Issuer.
final StringgetName() End-User's full name in displayable form including all name parts.
final StringgetGivenName() End-User's given name in displayable form
final StringgetMiddleName() End-User's middle name in displayable form
final StringgetFamilyName() End-User's family name in displayable form
final StringgetEmail() End-User's preferred e-mail address.
final StringgetPicture() URL of the End-User's profile picture.
final Set<String>getUserFriends() End-User's friends.
final StringgetUserBirthday() End-User's birthday
final Map<String, Integer>getUserAgeRange() End-User's age range
final Map<String, String>getUserHometown() End-User's hometown
final Map<String, String>getUserLocation() End-User's location
final StringgetUserGender() End-User's gender
final StringgetUserLink() End-User's link
UnitwriteToParcel(Parcel dest, Integer flags)
Booleanequals(Object other)
IntegerhashCode()
StringtoString()
IntegerdescribeContents()
final StringtoEnCodedString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

AuthenticationTokenClaims

AuthenticationTokenClaims(String encodedClaims, String expectedNonce)

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation, String userGender, String userLink)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday
userAgeRange - End-User's age range
userHometown - End-User's hometown
userLocation - End-User's location
userGender - End-User's gender
userLink - End-User's link

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation, String userGender)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday
userAgeRange - End-User's age range
userHometown - End-User's hometown
userLocation - End-User's location
userGender - End-User's gender

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown, Map<String, String> userLocation)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday
userAgeRange - End-User's age range
userHometown - End-User's hometown
userLocation - End-User's location

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange, Map<String, String> userHometown)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday
userAgeRange - End-User's age range
userHometown - End-User's hometown

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday, Map<String, Integer> userAgeRange)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday
userAgeRange - End-User's age range

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends, String userBirthday)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends
userBirthday - End-User's birthday

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture, Collection<String> userFriends)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture
userFriends - End-User's friends

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email, String picture)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address
picture - URL of the End-User's profile picture

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName, String email)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form
email - End-User's preferred e-mail address

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName, String familyName)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form
familyName - End-User's family name in displayable form

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName, String middleName)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form
middleName - End-User's middle name in displayable form

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name, String givenName)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts
givenName - End-User's given name in displayable form

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub, String name)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
name - End-User's full name in displayable form including all name parts

AuthenticationTokenClaims

AuthenticationTokenClaims(String jti, String iss, String aud, String nonce, Long exp, Long iat, String sub)
Creates a the claims component of
Parameters:
jti - A unique identifier for the token
iss - Issuer Identifier for the Issuer of the response
aud - Audience(s) that this ID Token is intended for
nonce - String value used to associate a Client session with an ID Token
exp - Expiration time on or after which the ID Token MUST NOT be accepted for processing
iat - Time at which the JWT was issued
sub - Subject - Identifier for the End-User at the Issuer
Method Detail

getJti

 final StringgetJti()
Get a unique identifier for the token.

getIss

 final StringgetIss()
Get issuer Identifier for the Issuer of the response.

getAud

 final StringgetAud()
Get audience(s) that this ID Token is intended for.

getNonce

 final StringgetNonce()
String value used to associate a Client session with an ID Token, and to mitigate replay attacks.

getExp

 final LonggetExp()
Expiration time (in seconds) on or after which the ID Token MUST NOT be accepted for processing.

getIat

 final LonggetIat()
Time (in seconds) at which the JWT was issued.

getSub

 final StringgetSub()
Subject - Identifier for the End-User at the Issuer.

getName

 final StringgetName()
End-User's full name in displayable form including all name parts.

getGivenName

 final StringgetGivenName()
End-User's given name in displayable form

getMiddleName

 final StringgetMiddleName()
End-User's middle name in displayable form

getFamilyName

 final StringgetFamilyName()
End-User's family name in displayable form

getEmail

 final StringgetEmail()
End-User's preferred e-mail address.
IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission.

getPicture

 final StringgetPicture()
URL of the End-User's profile picture.

getUserFriends

 final Set<String> getUserFriends()
End-User's friends.
IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission.

getUserBirthday

 final StringgetUserBirthday()
End-User's birthday

getUserAgeRange

 final Map<String, Integer> getUserAgeRange()
End-User's age range

getUserHometown

 final Map<String, String> getUserHometown()
End-User's hometown

getUserLocation

 final Map<String, String> getUserLocation()
End-User's location

getUserGender

 final StringgetUserGender()
End-User's gender

getUserLink

 final StringgetUserLink()
End-User's link

writeToParcel

UnitwriteToParcel(Parcel dest, Integer flags)

equals

Booleanequals(Object other)

hashCode

IntegerhashCode()

toString

StringtoString()

describeContents

IntegerdescribeContents()

toEnCodedString

 final StringtoEnCodedString()