mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
javadoc for Tokens class
This commit is contained in:
@@ -35,12 +35,14 @@ package sonia.scm.security;
|
|||||||
|
|
||||||
import org.apache.shiro.authc.AuthenticationToken;
|
import org.apache.shiro.authc.AuthenticationToken;
|
||||||
import org.apache.shiro.authc.UsernamePasswordToken;
|
import org.apache.shiro.authc.UsernamePasswordToken;
|
||||||
|
import org.apache.shiro.subject.Subject;
|
||||||
|
|
||||||
//~--- JDK imports ------------------------------------------------------------
|
//~--- JDK imports ------------------------------------------------------------
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Create tokens for security reasons.
|
||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
* @since 1.21
|
* @since 1.21
|
||||||
@@ -49,12 +51,13 @@ public final class Tokens
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Build an {@link AuthenticationToken} for use with
|
||||||
|
* {@link Subject#login(org.apache.shiro.authc.AuthenticationToken)}.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param request
|
* @param request servlet request
|
||||||
* @param username
|
* @param username username of the user to authenticate
|
||||||
* @param password
|
* @param password password of the user to authenticate
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user