-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AuthenticationToken implements Parcelable
This class represents an immutable Authentication Token (or so called "id token") for using Facebook Login. It includes the three component that constructs the token HEADER.PAYLOAD.SIGNATURE
WARNING: This feature is currently in development and not intended for external usage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAuthenticationToken.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringtokenprivate final StringexpectedNonceprivate final AuthenticationTokenHeaderheaderprivate final AuthenticationTokenClaimsclaimsprivate final Stringsignature
-
Constructor Summary
Constructors Constructor Description AuthenticationToken(String token, String expectedNonce)
-
Method Summary
Modifier and Type Method Description final StringgetToken()Gets the raw string of the AuthenticationToken (or id_token) final StringgetExpectedNonce()Expected nonce - used in Login Configuration final AuthenticationTokenHeadergetHeader()Header component of the AuthenticationToken final AuthenticationTokenClaimsgetClaims()Payload component of the AuthenticationToken final StringgetSignature()Signature component of the id_token TODO: create a new class for the signature part Booleanequals(Object other)IntegerhashCode()UnitwriteToParcel(Parcel dest, Integer flags)IntegerdescribeContents()-
-
Method Detail
-
getExpectedNonce
final String getExpectedNonce()
Expected nonce - used in Login Configuration
-
getHeader
final AuthenticationTokenHeader getHeader()
Header component of the AuthenticationToken
-
getClaims
final AuthenticationTokenClaims getClaims()
Payload component of the AuthenticationToken
-
getSignature
final String getSignature()
Signature component of the id_token TODO: create a new class for the signature part
-
writeToParcel
Unit writeToParcel(Parcel dest, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-