Class ProtectedResourceRequest

    • Constructor Detail

      • ProtectedResourceRequest

        protected ProtectedResourceRequest​(URI uri,
                                           AccessToken accessToken)
        Creates a new protected resource request.
        Parameters:
        uri - The URI of the protected resource. May be null if the Request.toHTTPRequest() method will not be used.
        accessToken - An OAuth 2.0 access token for the request, null if none.
    • Method Detail

      • getAccessToken

        public AccessToken getAccessToken()
        Gets the OAuth 2.0 access token for this protected resource request.
        Returns:
        The OAuth 2.0 access token, null if none.