<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tototoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/tototoshi/</author_url>
  <blog_title>tototoshi の日記</blog_title>
  <blog_url>https://tototoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Twitter</anon>
  </categories>
  <description>OAuth認証その２を書こうと思ったけど、なんとなく気分でBasic認証での投稿を試みてみた。 さくっとできた。OAuthに比べてすごい楽。 Basic認証を通過するにはAuthenticatorクラスを利用すると良さそうです。 Authenticatorのサブクラスを作成し、getPasswordAuthentication()をオーバーライドします。 下のソースではBasicAuthenticatorというクラスを作成し、そのインスタンスを引数として Authenticator.setDefault(Authenticator)を呼出しています。 あとはTwitterのAPIを叩くのみ。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftototoshi.hatenablog.com%2Fentry%2F20091227%2F1261920890&quot; title=&quot;Basic認証+JavaからTwitterにポスト - tototoshi の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tototoshi/20091227/20091227222747.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-12-27 22:34:50</published>
  <title>Basic認証+JavaからTwitterにポスト</title>
  <type>rich</type>
  <url>https://tototoshi.hatenablog.com/entry/20091227/1261920890</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
