Class 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 OauthExchangeOptions of​(java.lang.String code, java.lang.String clientId, java.lang.String clientSecret, java.lang.String state)  
      OauthExchangeOptions redirectUri​(java.lang.String redirectUri)
      Only used to validate that it matches the original /oauth/authorize, not used to redirect again.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()