Package discord4j.oauth2
Class DiscordOAuth2Server
java.lang.Object
discord4j.oauth2.DiscordOAuth2Server
A simple server capable of exchanging an OAuth2 authorization code received by the frontend via a query parameter for
an
AccessToken encoded as JSON.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder suited for creating anOAuth2Server.class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscordOAuth2Server.Builderbuilder()Initialize a new builder.static DiscordOAuth2Server.Builderbuilder(RestClient restClient) final HttpServerGets the configuredHttpServer.
-
Field Details
-
SESSION_KEY
- See Also:
-
-
Method Details
-
builder
Initialize a new builder.- Returns:
- a builder capable of constructing instances of
DiscordOAuth2Server
-
builder
-
getHttpServer
Gets the configuredHttpServer.- Returns:
- the configured
HttpServer
-