Package com.dnsimple.request
Class OauthExchangeOptions
- java.lang.Object
-
- com.dnsimple.request.OauthExchangeOptions
-
public class OauthExchangeOptions extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>asMap()static OauthExchangeOptionsof(java.lang.String code, java.lang.String clientId, java.lang.String clientSecret, java.lang.String state)OauthExchangeOptionsredirectUri(java.lang.String redirectUri)Only used to validate that it matches the original /oauth/authorize, not used to redirect again.
-
-
-
Method Detail
-
of
public static OauthExchangeOptions of(java.lang.String code, java.lang.String clientId, java.lang.String clientSecret, java.lang.String state)
- Parameters:
code- The code acquired in the previous authorization step.clientId- The client ID you received from DNSimple when you registered the application.clientSecret- The client secret you received from DNSimple when you registered the application.state- The state content originally passed to /oauth/authorize.
-
redirectUri
public OauthExchangeOptions redirectUri(java.lang.String redirectUri)
Only used to validate that it matches the original /oauth/authorize, not used to redirect again.
-
asMap
public java.util.Map<java.lang.String,java.lang.String> asMap()
-
-