Class UserTokenController
- java.lang.Object
-
- de.xima.fc.api.rest.pub.impl.generic.controller.UserTokenController
-
public class UserTokenController extends Object
-
-
Constructor Summary
Constructors Constructor Description UserTokenController(org.pac4j.core.context.WebContext webContext, javax.servlet.http.HttpServletRequest servletRequest, org.pac4j.core.config.Config pac4jConfig, String clientName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenResponse
authenticate(String userName, String password)
boolean
removeRefreshToken(String refreshToken)
TokenResponse
updateRefreshToken(String refreshToken)
-
-
-
Constructor Detail
-
UserTokenController
public UserTokenController(org.pac4j.core.context.WebContext webContext, javax.servlet.http.HttpServletRequest servletRequest, org.pac4j.core.config.Config pac4jConfig, String clientName)
-
-
Method Detail
-
authenticate
public TokenResponse authenticate(String userName, String password) throws InvalidTokenException, UnknownTokenException, TokenCreateException
-
updateRefreshToken
public TokenResponse updateRefreshToken(String refreshToken) throws InvalidTokenException, UnknownTokenException, TokenCreateException
-
removeRefreshToken
public boolean removeRefreshToken(String refreshToken)
-
-