Interface TokenResponse.IBuildStage
-
- All Known Implementing Classes:
TokenResponse.Builder
- Enclosing class:
- TokenResponse
public static interface TokenResponse.IBuildStageBuild stage interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenResponsebuild()Do the build.TokenResponse.IBuildStagewithExpiresIn(Integer expiresIn)Supply the expiration.TokenResponse.IBuildStagewithRefreshToken(String refreshToken)Supply the refresh tokenTokenResponse.IBuildStagewithScope(String scope)Supply the scope.
-
-
-
Method Detail
-
withRefreshToken
TokenResponse.IBuildStage withRefreshToken(String refreshToken)
Supply the refresh token- Parameters:
refreshToken- the refresh token- Returns:
- this builder
-
withExpiresIn
TokenResponse.IBuildStage withExpiresIn(Integer expiresIn)
Supply the expiration.- Parameters:
expiresIn- the expiration- Returns:
- this builder
-
withScope
TokenResponse.IBuildStage withScope(String scope)
Supply the scope.- Parameters:
scope- the scope- Returns:
- this builder
-
build
TokenResponse build()
Do the build.- Returns:
- the response
-
-