クラス Saml2AuthenticationRequest.Builder

    • メソッドの詳細

      • issuer

        public Saml2AuthenticationRequest.Builder issuer​(java.lang.String issuer)
        認証リクエストの発行者を設定します。
        パラメーター:
        issuer - - 必須の値
        戻り値:
        この Builder
      • credentials

        public Saml2AuthenticationRequest.Builder credentials​(java.util.function.Consumer<java.util.Collection<Saml2X509Credential>> credentials)
        IDP と SP の間の通信で使用される Saml2X509Credential 資格情報のコレクションを変更します。特に、認証リクエストに署名します。例:  Saml2X509Credential credential =...; return Saml2AuthenticationRequest.withLocalSpEntityId("id") .credentials((c) -> c.add(credential))... .build();
        パラメーター:
        credentials - - 資格情報のコレクションを変更できるコンシューマー
        戻り値:
        このオブジェクト
      • destination

        public Saml2AuthenticationRequest.Builder destination​(java.lang.String destination)
        認証リクエストの宛先を設定します。通常 Service Provider EntityID
        パラメーター:
        destination - - 必須の値
        戻り値:
        この Builder
      • assertionConsumerServiceUrl

        public Saml2AuthenticationRequest.Builder assertionConsumerServiceUrl​(java.lang.String assertionConsumerServiceUrl)
        認証リクエストの assertionConsumerServiceURL を設定します。通常は Service Provider EntityID
        パラメーター:
        assertionConsumerServiceUrl - - 必須の値
        戻り値:
        この Builder
      • build

        public Saml2AuthenticationRequest build()
        Saml2AuthenticationRequest オブジェクトを作成します。
        戻り値:
        Saml2AuthenticationRequest オブジェクト
        例外:
        java.lang.IllegalArgumentException - 必要なプロパティが設定されていない場合