クラス RedirectServerAuthenticationSuccessHandler

  • 実装されたすべてのインターフェース:
    ServerAuthenticationSuccessHandler

    public class RedirectServerAuthenticationSuccessHandler
    extends java.lang.Object
    implements ServerAuthenticationSuccessHandler
    認証成功時にリダイレクトを実行します。デフォルトでは、保存されたリクエストが存在する場合は保存され、それ以外の場合は "/" にリダイレクトされます。
    導入:
    5.0
    • コンストラクターの詳細

      • RedirectServerAuthenticationSuccessHandler

        public RedirectServerAuthenticationSuccessHandler()
        "/" の場所で新しいインスタンスを作成します
      • RedirectServerAuthenticationSuccessHandler

        public RedirectServerAuthenticationSuccessHandler​(java.lang.String location)
        指定された場所で新しいインスタンスを作成します
        パラメーター:
        location - リクエストが setRequestCache(ServerRequestCache) にキャッシュされていない場合にリダイレクトする場所
    • メソッドの詳細

      • setLocation

        public void setLocation​(java.net.URI location)
        認証成功時にユーザーがリダイレクトされる場所
        パラメーター:
        location - リダイレクト先の場所。デフォルトは "/" です
      • setRedirectStrategy

        public void setRedirectStrategy​(ServerRedirectStrategy redirectStrategy)
        使用する RedirectStrategy。
        パラメーター:
        redirectStrategy - 使用する戦略。デフォルトは DefaultRedirectStrategy です。