Class AccessToken.Builder (1.24.1)

publicstaticclass AccessToken.Builder

Inheritance

java.lang.Object > AccessToken.Builder

Constructors

Builder()

protectedBuilder()

Builder(AccessToken accessToken)

protectedBuilder(AccessTokenaccessToken)
Parameter
Name Description
accessToken AccessToken

Methods

build()

publicAccessTokenbuild()
Returns
Type Description
AccessToken

getExpirationTime()

publicDategetExpirationTime()
Returns
Type Description
Date

getScopes()

publicList<String>getScopes()
Returns
Type Description
List<String>

getTokenValue()

publicStringgetTokenValue()
Returns
Type Description
String

setExpirationTime(Date expirationTime)

publicAccessToken.BuildersetExpirationTime(DateexpirationTime)
Parameter
Name Description
expirationTime Date
Returns
Type Description
AccessToken.Builder

setScopes(String scopes)

publicAccessToken.BuildersetScopes(Stringscopes)
Parameter
Name Description
scopes String
Returns
Type Description
AccessToken.Builder

setScopes(List<String> scopes)

publicAccessToken.BuildersetScopes(List<String>scopes)
Parameter
Name Description
scopes List<String>
Returns
Type Description
AccessToken.Builder

setTokenValue(String tokenValue)

publicAccessToken.BuildersetTokenValue(StringtokenValue)
Parameter
Name Description
tokenValue String
Returns
Type Description
AccessToken.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.