-
public class LegacyTokenHelper.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringTOKEN_KEYprivate final StringEXPIRATION_DATE_KEYprivate final StringLAST_REFRESH_DATE_KEYprivate final StringTOKEN_SOURCE_KEYprivate final StringPERMISSIONS_KEYprivate final StringDECLINED_PERMISSIONS_KEYprivate final StringEXPIRED_PERMISSIONS_KEYprivate final StringAPPLICATION_ID_KEYprivate final StringDEFAULT_CACHE_KEYpublic final static LegacyTokenHelper.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanhasTokenInformation(Bundle bundle)final StringgetToken(Bundle bundle)final UnitputToken(Bundle bundle, String value)final DategetExpirationDate(Bundle bundle)final UnitputExpirationDate(Bundle bundle, Date value)final LonggetExpirationMilliseconds(Bundle bundle)final UnitputExpirationMilliseconds(Bundle bundle, Long value)final Set<String>getPermissions(Bundle bundle)final UnitputPermissions(Bundle bundle, Collection<String> value)final UnitputDeclinedPermissions(Bundle bundle, Collection<String> value)final UnitputExpiredPermissions(Bundle bundle, Collection<String> value)final AccessTokenSourcegetSource(Bundle bundle)final UnitputSource(Bundle bundle, AccessTokenSource value)final DategetLastRefreshDate(Bundle bundle)final UnitputLastRefreshDate(Bundle bundle, Date value)final LonggetLastRefreshMilliseconds(Bundle bundle)final UnitputLastRefreshMilliseconds(Bundle bundle, Long value)final StringgetApplicationId(Bundle bundle)final UnitputApplicationId(Bundle bundle, String value)final StringgetTOKEN_KEY()The key used by AccessTokenCache to store the token value in the Bundle during load and save. final StringgetEXPIRATION_DATE_KEY()The key used by AccessTokenCache to store the expiration date value in the Bundle during load and save. final StringgetLAST_REFRESH_DATE_KEY()The key used by AccessTokenCache to store the last refresh date value in the Bundle during load and save. final StringgetTOKEN_SOURCE_KEY()The key used by AccessTokenCache to store an enum indicating the source of the token in the Bundle during load and save. final StringgetPERMISSIONS_KEY()The key used by AccessTokenCache to store the list of permissions granted by the token in the Bundle during load and save. final StringgetDECLINED_PERMISSIONS_KEY()The key used by AccessTokenCache to store the list of permissions declined by the user in the token in the Bundle during load and save. final StringgetEXPIRED_PERMISSIONS_KEY()final StringgetAPPLICATION_ID_KEY()final StringgetDEFAULT_CACHE_KEY()-
-
Method Detail
-
hasTokenInformation
final Boolean hasTokenInformation(Bundle bundle)
-
getExpirationDate
final Date getExpirationDate(Bundle bundle)
-
putExpirationDate
final Unit putExpirationDate(Bundle bundle, Date value)
-
getExpirationMilliseconds
final Long getExpirationMilliseconds(Bundle bundle)
-
putExpirationMilliseconds
final Unit putExpirationMilliseconds(Bundle bundle, Long value)
-
getPermissions
final Set<String> getPermissions(Bundle bundle)
-
putPermissions
final Unit putPermissions(Bundle bundle, Collection<String> value)
-
putDeclinedPermissions
final Unit putDeclinedPermissions(Bundle bundle, Collection<String> value)
-
putExpiredPermissions
final Unit putExpiredPermissions(Bundle bundle, Collection<String> value)
-
getSource
final AccessTokenSource getSource(Bundle bundle)
-
putSource
final Unit putSource(Bundle bundle, AccessTokenSource value)
-
getLastRefreshDate
final Date getLastRefreshDate(Bundle bundle)
-
putLastRefreshDate
final Unit putLastRefreshDate(Bundle bundle, Date value)
-
getLastRefreshMilliseconds
final Long getLastRefreshMilliseconds(Bundle bundle)
-
putLastRefreshMilliseconds
final Unit putLastRefreshMilliseconds(Bundle bundle, Long value)
-
getApplicationId
final String getApplicationId(Bundle bundle)
-
putApplicationId
final Unit putApplicationId(Bundle bundle, String value)
-
getTOKEN_KEY
final String getTOKEN_KEY()
The key used by AccessTokenCache to store the token value in the Bundle during load and save.
-
getEXPIRATION_DATE_KEY
final String getEXPIRATION_DATE_KEY()
The key used by AccessTokenCache to store the expiration date value in the Bundle during load and save.
-
getLAST_REFRESH_DATE_KEY
final String getLAST_REFRESH_DATE_KEY()
The key used by AccessTokenCache to store the last refresh date value in the Bundle during load and save.
-
getTOKEN_SOURCE_KEY
final String getTOKEN_SOURCE_KEY()
The key used by AccessTokenCache to store an enum indicating the source of the token in the Bundle during load and save.
-
getPERMISSIONS_KEY
final String getPERMISSIONS_KEY()
The key used by AccessTokenCache to store the list of permissions granted by the token in the Bundle during load and save.
-
getDECLINED_PERMISSIONS_KEY
final String getDECLINED_PERMISSIONS_KEY()
The key used by AccessTokenCache to store the list of permissions declined by the user in the token in the Bundle during load and save.
-
getEXPIRED_PERMISSIONS_KEY
final String getEXPIRED_PERMISSIONS_KEY()
-
getAPPLICATION_ID_KEY
final String getAPPLICATION_ID_KEY()
-
getDEFAULT_CACHE_KEY
final String getDEFAULT_CACHE_KEY()
-
-
-
-