Class TokenHandler
java.lang.Object
ch.software_atelier.simpleflex.rest.auth.token.TokenHandler
- Author:
- tk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateToken(String user) createToken(String user, int lifetimeInSeconds) createToken(HashMap<String, Object> claims, int lifetimeInSeconds) int
-
Constructor Details
-
TokenHandler
-
-
Method Details
-
renew
- Throws:
TokenHandlerException
-
createToken
- Throws:
TokenHandlerException
-
createToken
- Throws:
TokenHandlerException
-
createToken
public String createToken(HashMap<String, Object> claims, int lifetimeInSeconds) throws TokenHandlerException- Throws:
TokenHandlerException
-
getSessionLength
public int getSessionLength()
-