JavaScript is disabled on your browser.
play.mvc

Class Security.Authenticator

  • Enclosing class:
    Security


    public static class Security.Authenticator
    extends Results 
    Handles authentication.
    • Constructor Detail

      • Security.Authenticator

        public Security.Authenticator()
    • Method Detail

      • getUsername

        public java.lang.String getUsername(Http.Context ctx)
        Retrieves the username from the HTTP context; the default is to read from the session cookie.
        Returns:
        null if the user is not authenticated.
      • onUnauthorized

        public Result onUnauthorized(Http.Context ctx)
        Generates an alternative result if the user is not authenticated; the default a simple '401 Not Authorized' page.

AltStyle によって変換されたページ (->オリジナル) /