Class OauthAuthorizeOptions


  • public class OauthAuthorizeOptions
    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 OauthAuthorizeOptions of​(java.lang.String clientId, java.lang.String state)  
      OauthAuthorizeOptions redirectUri​(java.lang.String redirectUri)
      Set where to redirect the user after authorization has completed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static OauthAuthorizeOptions of​(java.lang.String clientId,
                                               java.lang.String state)
        Parameters:
        clientId - The client ID you received from DNSimple when you registered the application.
        state - An unguessable random string. It is used to protect against cross-site request forgery attacks and it will be passed back to your redirect URI.
      • redirectUri

        public OauthAuthorizeOptions redirectUri​(java.lang.String redirectUri)
        Set where to redirect the user after authorization has completed. This must be the exact URI registered or a subdirectory.
      • asMap

        public java.util.Map<java.lang.String,​java.lang.String> asMap()