クラス OpenSamlRelyingPartyRegistrationBuilderHttpMessageConverter
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.registration.OpenSamlRelyingPartyRegistrationBuilderHttpMessageConverter
- 実装されたすべてのインターフェース:
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
public class OpenSamlRelyingPartyRegistrationBuilderHttpMessageConverter extends java.lang.Object implements org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
HTTP レスポンスでIDPSSODescriptor
を受け取り、それをRelyingPartyRegistration.Builder
に変換するHttpMessageConverter
。これの主な使用例は、RelyingPartyRegistrationRepository
に含めるためのRelyingPartyRegistration
を構築することです。これを行うには、次のように、このコンバーターのインスタンスをRestOperations
に含めることができます。RestOperations rest = new RestTemplate(Collections.singletonList( new RelyingPartyRegistrationsBuilderHttpMessageConverter())); RelyingPartyRegistration.Builder builder = rest.getForObject ("https://idp.example.org/metadata", RelyingPartyRegistration.Builder.class); RelyingPartyRegistration registration = builder.registrationId("registration-id").build();
これは、RelyingPartyRegistration
の半分のアサーションパーティ(IDP)のみを構成することに注意してください。つまり、AuthnRequests の送信先と送信方法、アサーションの検証方法などです。証明書利用者(SP)情報を使用してRelyingPartyRegistration
をさらに構成するには、適切なビルダーのメソッド。- 導入:
- 5.4
コンストラクターのサマリー
コンストラクター コンストラクター 説明 OpenSamlRelyingPartyRegistrationBuilderHttpMessageConverter()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 boolean
canRead(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
boolean
canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
java.util.List<org.springframework.http.MediaType>
getSupportedMediaTypes()
RelyingPartyRegistration.Builder
read(java.lang.Class<? extends RelyingPartyRegistration.Builder> clazz, org.springframework.http.HttpInputMessage inputMessage)
void
write(RelyingPartyRegistration.Builder builder, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)
メソッドの詳細
canRead
public boolean canRead(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
- 次で指定:
- インターフェース
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
のcanRead
canWrite
public boolean canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
- 次で指定:
- インターフェース
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
のcanWrite
getSupportedMediaTypes
public java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
- 次で指定:
- インターフェース
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
のgetSupportedMediaTypes
read
public RelyingPartyRegistration.Builder read(java.lang.Class<? extends RelyingPartyRegistration.Builder> clazz, org.springframework.http.HttpInputMessage inputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
- 次で指定:
- インターフェース
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
のread
- 例外:
java.io.IOException
org.springframework.http.converter.HttpMessageNotReadableException
write
public void write(RelyingPartyRegistration.Builder builder, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException
- 次で指定:
- インターフェース
org.springframework.http.converter.HttpMessageConverter<RelyingPartyRegistration.Builder>
のwrite
- 例外:
org.springframework.http.converter.HttpMessageNotWritableException