> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

# プロキシサーバー経由での Authlete API サーバーへのアクセス

> Authlete API サーバーへのアクセスをプロキシサーバー経由で行う際の設定方法について。

認可サーバーから Authlete API サーバーへ、プロキシサーバーを経由してアクセスする場合、下記を参考に設定ください。

## プロキシ関連のシステムプロパティ

java.net.useSystemProxies\
http.proxyHost\
http.proxyPort\
https.proxyHost\
https.proxyPort\
http.nonProxyHosts

## 設定例

例1. java コマンドの引数として設定する

```
java -Djava.net.useSystemProxies=true ...
```

例2. 認可サーバーのソースコード内で programatically に設定する

```
System.setProperty("java.net.useSystemProxies", "true");
...
```

## 関連リンク

[https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html](https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html)

[https://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm](https://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm)

[http://www.coppermine.jp/docs/notepad/2014/12/jersey-client-with-proxy.html](http://www.coppermine.jp/docs/notepad/2014/12/jersey-client-with-proxy.html)
