-
- 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 class
AuthenticationToken.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
token
private final String
expectedNonce
private final AuthenticationTokenHeader
header
private final AuthenticationTokenClaims
claims
private final String
signature
-
Constructor Summary
Constructors Constructor Description AuthenticationToken(String token, String expectedNonce)
-
Method Summary
Modifier and Type Method Description final String
getToken()
Gets the raw string of the AuthenticationToken (or id_token) final String
getExpectedNonce()
Expected nonce - used in Login Configuration final AuthenticationTokenHeader
getHeader()
Header component of the AuthenticationToken final AuthenticationTokenClaims
getClaims()
Payload component of the AuthenticationToken final String
getSignature()
Signature component of the id_token TODO: create a new class for the signature part Boolean
equals(Object other)
Integer
hashCode()
Unit
writeToParcel(Parcel dest, Integer flags)
Integer
describeContents()
-
-
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()
-
-
-
-