クラス MessageSecurityMetadataSourceRegistry
java.lang.ObjectSE
org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry
使用すべきではありません。
MessageMatcher
を使用してセキュリティ制約をセキュリティ式にマッピングできます。- 導入:
- 4.0
ネストされたクラスのサマリー
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明使用すべきではありません。Message
をセキュリティ式にマップします。protected boolean
使用すべきではありません。マッピングが追加されたかどうかを判断できます。protected MessageSecurityMetadataSource
使用すべきではありません。サブクラスがMessageSecurityMetadataSource
の作成を作成できるようにします。expressionHandler
(SecurityExpressionHandler<org.springframework.messaging.Message<ObjectSE>> expressionHandler) 使用すべきではありません。protected boolean
使用すべきではありません。simpDestPathMatcher(PathMatcher)
が明示的に設定されているかどうかを判断します。matchers
(MessageMatcher<?>... matchers) 使用すべきではありません。MessageMatcher
インスタンスのList
SE をセキュリティ式にマップします。使用すべきではありません。SimpMessageHeaderAccessor 宛先ヘッダーが null のMessage
をマップします(つまりsimpDestMatchers
(StringSE... patterns) 使用すべきではありません。simpDestPathMatcher
(org.springframework.util.PathMatcher pathMatcher) 使用すべきではありません。simpDestMatchers(String...)
で使用するPathMatcher
。simpMessageDestMatchers
(StringSE... patterns) 使用すべきではありません。simpSubscribeDestMatchers
(StringSE... patterns) 使用すべきではありません。simpTypeMatchers
(org.springframework.messaging.simp.SimpMessageType... typesToMatch) 使用すべきではありません。SimpDestinationMessageMatcher
インスタンスのList
SE をマップします。
コンストラクターの詳細
MessageSecurityMetadataSourceRegistry
public MessageSecurityMetadataSourceRegistry()使用すべきではありません。
メソッドの詳細
anyMessage
使用すべきではありません。Message
をセキュリティ式にマップします。- 戻り値:
- 関連付ける式
nullDestMatcher
使用すべきではありません。NULL の SimpMessageHeaderAccessor 宛先ヘッダーを持つMessage
をマップします (つまり、CONNECT、CONNECT_ACK、HEARTBEAT、UNSUBSCRIBE、DISCONNECT、DISCONNECT_ACK、OTHER)- 戻り値:
- 関連付ける式
simpTypeMatchers
public MessageSecurityMetadataSourceRegistry.Constraint simpTypeMatchers(org.springframework.messaging.simp.SimpMessageType... typesToMatch) 使用すべきではありません。SimpDestinationMessageMatcher
インスタンスのList
SE をマップします。- パラメーター:
typesToMatch
- 一致するSimpMessageType
インスタンス- 戻り値:
- マッチャーに関連付けられている
MessageSecurityMetadataSourceRegistry.Constraint
simpDestMatchers
使用すべきではありません。SimpMessageType
に関係なく、SimpDestinationMessageMatcher
インスタンスのList
SE をマップします。Message で宛先が見つからない場合、Matcher は false を返します。- パラメーター:
patterns
-SimpDestinationMessageMatcher
を作成するパターン。simpDestPathMatcher(PathMatcher)
を使用します。- 戻り値:
MessageMatcher
に関連付けられているMessageSecurityMetadataSourceRegistry.Constraint
- 関連事項:
simpMessageDestMatchers
public MessageSecurityMetadataSourceRegistry.Constraint simpMessageDestMatchers(StringSE... patterns) 使用すべきではありません。SimpMessageType.MESSAGE
で一致するSimpDestinationMessageMatcher
インスタンスのList
SE をマップします。Message で宛先が見つからない場合、Matcher は false を返します。- パラメーター:
patterns
-SimpDestinationMessageMatcher
を作成するパターン。simpDestPathMatcher(PathMatcher)
を使用します。- 戻り値:
MessageMatcher
に関連付けられているMessageSecurityMetadataSourceRegistry.Constraint
- 関連事項:
simpSubscribeDestMatchers
public MessageSecurityMetadataSourceRegistry.Constraint simpSubscribeDestMatchers(StringSE... patterns) 使用すべきではありません。SimpMessageType.SUBSCRIBE
で一致するSimpDestinationMessageMatcher
インスタンスのList
SE をマップします。Message で宛先が見つからない場合、Matcher は false を返します。- パラメーター:
patterns
-SimpDestinationMessageMatcher
を作成するパターン。simpDestPathMatcher(PathMatcher)
を使用します。- 戻り値:
MessageMatcher
に関連付けられているMessageSecurityMetadataSourceRegistry.Constraint
- 関連事項:
simpDestPathMatcher
public MessageSecurityMetadataSourceRegistry simpDestPathMatcher(org.springframework.util.PathMatcher pathMatcher) 使用すべきではありません。- パラメーター:
pathMatcher
- 使用するPathMatcher
。null にはできません。- 戻り値:
MessageSecurityMetadataSourceRegistry
をさらにカスタマイズします。
isSimpDestPathMatcherConfigured
protected boolean isSimpDestPathMatcherConfigured()使用すべきではありません。simpDestPathMatcher(PathMatcher)
が明示的に設定されているかどうかを判断します。- 戻り値:
simpDestPathMatcher(PathMatcher)
が明示的に設定されている場合は true、それ以外の場合は false。
matchers
使用すべきではありません。MessageMatcher
インスタンスのList
SE をセキュリティ式にマップします。- パラメーター:
matchers
- マップするMessageMatcher
インスタンス。- 戻り値:
MessageMatcher
インスタンスに関連付けられているMessageSecurityMetadataSourceRegistry.Constraint
expressionHandler
public MessageSecurityMetadataSourceRegistry expressionHandler(SecurityExpressionHandler<org.springframework.messaging.Message<ObjectSE>> expressionHandler) 使用すべきではありません。使用するSecurityExpressionHandler
。デフォルトでは、DefaultMessageSecurityExpressionHandler
を使用します。- パラメーター:
expressionHandler
- 使用するSecurityExpressionHandler
。null にはできません。- 戻り値:
MessageSecurityMetadataSourceRegistry
をさらにカスタマイズします。
createMetadataSource
使用すべきではありません。サブクラスがMessageSecurityMetadataSource
の作成を作成できるようにします。このメソッドを呼び出さない API のユーザーを混乱させないように、これは公開されていません。
- 戻り値:
- 使用する
MessageSecurityMetadataSource
containsMapping
protected boolean containsMapping()使用すべきではありません。マッピングが追加されたかどうかを判断できます。これは、このメソッドを呼び出す必要がない API のユーザーを混乱させないように公開されていません。
- 戻り値:
- マッピングが追加された場合は true、それ以外の場合は false
MessageMatcherDelegatingAuthorizationManager
を使用してください