Class Tokens

java.lang.Object
sonia.scm.security.Tokens

public final class Tokens extends Object
Create tokens for security reasons.
Since:
1.21
  • Method Details

    • createAuthenticationToken

      public static org.apache.shiro.authc.AuthenticationToken createAuthenticationToken(jakarta.servlet.http.HttpServletRequest request, String username, String password)
      Build an AuthenticationToken for use with Subject.login(org.apache.shiro.authc.AuthenticationToken).
      Parameters:
      request - servlet request
      username - username of the user to authenticate
      password - password of the user to authenticate
      Returns:
      authentication token