<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://as5202t-5748.myasustor.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://as5202t-5748.myasustor.com/feed.php">
        <title>ria-web</title>
        <description></description>
        <link>https://as5202t-5748.myasustor.com/</link>
        <image rdf:resource="https://as5202t-5748.myasustor.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-07-05T11:30:05+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:rememberme&amp;rev=1738922779&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement4&amp;rev=1755954078&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement3&amp;rev=1738574239&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement1&amp;rev=1738905491&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:design_pattern:template_method&amp;rev=1220452030&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement2&amp;rev=1738905445&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:compress&amp;rev=1270478684&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:php5:memcached_install_on_linux&amp;rev=1280125757&amp;do=diff"/>
                <rdf:li rdf:resource="https://as5202t-5748.myasustor.com/doku.php?id=study:java:powermock:integation&amp;rev=1738895284&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://as5202t-5748.myasustor.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>ria-web</title>
        <link>https://as5202t-5748.myasustor.com/</link>
        <url>https://as5202t-5748.myasustor.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:rememberme&amp;rev=1738922779&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-07T10:06:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rememberme</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:rememberme&amp;rev=1738922779&amp;do=diff</link>
        <description>Spring rememeber-meログイン

ログインを維持してくれるremember-meログイン機能をSpring securityを用いて実装する方法を紹介します。

実装形態は次節で説明しますが、ここでは、persistence token実装形態を選択しています。</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement4&amp;rev=1755954078&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-08-23T13:01:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>implement4</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement4&amp;rev=1755954078&amp;do=diff</link>
        <description>認証クッキー取得の実装

本稿では、POC of consuming Sharepoint onlineのPOC段階4の実装を紹介します。


Mainコード

実装Mainコードを以下に示します。


private static final String COOKIE_SITE_ENDPOINT = &quot;https://xxxx.contoso.com/_forms/default.aspx?wa=wsignin1.0&quot;;
private static RestTemplateWithCookies restTemplateWithCookie = new RestTemplateWithCookies();   ★ポイント1

public void connnectSharePointSiteAndGetCookie(String binarySecurityToken) {

  try {
    //request entity
    RequestEntity&lt;String&gt; _requestEntity = RequestEntity
	.post(new URI(C…</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement3&amp;rev=1738574239&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-03T09:17:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>implement3</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement3&amp;rev=1738574239&amp;do=diff</link>
        <description>Binary token取得の実装

本稿では、SAML Security token 取得の実装に続き、Binary token取得処理の実装について、紹介します。

動作環境については、上記ページに紹介してありますので、割愛します。

Mainコード

実装コードのメインとなる部分を以下に示します。</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement1&amp;rev=1738905491&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-07T05:18:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>implement1</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement1&amp;rev=1738905491&amp;do=diff</link>
        <description>SAML Security token 取得の実装

ここでは、POC of consuming Sharepoint onlineのPOC段階２について、Javaの実装例を紹介します。

動作環境について

テスト環境についてですが、Java7（IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 amd64-64 Compressed References 20150701_255667 (JIT enabled, AOT enabled))で、テストを行いました。</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:design_pattern:template_method&amp;rev=1220452030&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-03T14:27:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>template_method</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:design_pattern:template_method&amp;rev=1220452030&amp;do=diff</link>
        <description>the Definition of Template Method Pattern

템플릿 메소드 패턴의 정의는 다음과 같습니다.


 템플릿 메소드 패턴에서는 메소드에서 알고리즘의 골격을 정의합니다.
 알고리즘의 여러 단계 중 일부는 서브클래스에서 구현할 수 있습니다.
 템플릿 메소드를 이용하면 알고리즘의 구조는 구대로 유지하면서 서브
 클래스에서 특정단계를 재정의할 수 있습니다.</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement2&amp;rev=1738905445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-07T05:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>implement2</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:sharepointonline:implement2&amp;rev=1738905445&amp;do=diff</link>
        <description>3rd Party Security Providerの導入

SAML Security token 取得の実装で、Bouncy Castleライブラリがpom.xmlにありました。

Bouncy Castleライブラリを導入した理由について、本稿で説明します。


POC of consuming Sharepoint onlineでも触れましたが、Sharepoint Onlineサイトはhttpsプロトコルを使用します。</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:compress&amp;rev=1270478684&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-05T14:44:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>compress</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:compress&amp;rev=1270478684&amp;do=diff</link>
        <description>Compressing a byte array in the ZIP format

バイトarrayを圧縮したり、zipファイルを出力したりするのは、java.util.zipのAPIを用いれば簡単に出来る。

では、バイトarrayを圧縮してzipファイルで出力するのも可能なのか？結論から言えば可能だ。</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:php5:memcached_install_on_linux&amp;rev=1280125757&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-07-26T06:29:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>memcached_install_on_linux</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:php5:memcached_install_on_linux&amp;rev=1280125757&amp;do=diff</link>
        <description>Installing Memcached on RedHat or CentOS

Linux(RedHat or CentOS)上でMemcachedサーバーを導入する手順を紹介する。

phpからの利用できるための方法も説明する。
大まかな手順は次のとおりである。

	*  CentOS/RedHat</description>
    </item>
    <item rdf:about="https://as5202t-5748.myasustor.com/doku.php?id=study:java:powermock:integation&amp;rev=1738895284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-07T02:28:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>integation</title>
        <link>https://as5202t-5748.myasustor.com/doku.php?id=study:java:powermock:integation&amp;rev=1738895284&amp;do=diff</link>
        <description>Integration with TestNG

PowermockをTestNGと一緒に使う為に必要な設定をメモとして残しておく。

基本的に、testプロジェクトはMavenプロジェクトとして作成することを前提している。

Mavenプロジェクトのproperties設定を以下に示す。</description>
    </item>
</rdf:RDF>
