Package com.mrivanplays.jdoa2
Class ApplicationInfo.Builder
java.lang.Object
com.mrivanplays.jdoa2.ApplicationInfo.Builder
- Enclosing class:
- ApplicationInfo
Represents a builder, for easily creating
ApplicationInfo
instance.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthCode()
Authentication code of the user you want to get information of.Sets the authentication code of the user you want to get information of.build()
Builds the specified parameters of the builder into anApplicationInfo
clientId()
Application's client id.Sets the application's client id.Application's client secret.clientSecret
(String clientSecret) Sets the application's client secret.Application's URL callback.redirectUri
(String redirectUri) Sets the application's URL callback.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authCode
Authentication code of the user you want to get information of.- Returns:
- auth code
- See Also:
-
authCode
Sets the authentication code of the user you want to get information of.- Parameters:
authCode
- authentication code- Returns:
- this instance for chaining
- See Also:
-
redirectUri
Application's URL callback.- Returns:
- redirect uri
-
redirectUri
Sets the application's URL callback.- Parameters:
redirectUri
- redirect uri- Returns:
- this instance for chaining
-
clientId
Application's client id.- Returns:
- client id
- See Also:
-
clientId
Sets the application's client id.- Parameters:
clientId
- client id- Returns:
- this instance for chaining
- See Also:
-
clientSecret
Application's client secret.- Returns:
- client secret
-
clientSecret
Sets the application's client secret.- Parameters:
clientSecret
- client secret- Returns:
- this instance for chaining
-
build
Builds the specified parameters of the builder into anApplicationInfo
- Returns:
- application info
-