- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for beggarer (0.03 sec)
-
AccessTokenHelper.java
org.codelibs.fess.exception.InvalidAccessTokenException; L24:import org.codelibs.fess.util.ComponentUtil; L25: L26:import jakarta.servlet.http.HttpServletRequest; L27: L28:public class AccessTokenHelper { L29: L30: protected static final String BEARER = "Bearer"; L31: L32: protected Random random = new SecureRandom(); L33: L34: public String generateAccessToken() { L35: return RandomStringUtils.random(ComponentUtil.getFessConfig().getApiAccessTokenLengthAsInteger(), 0, 0, true, true, null,...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 2.1K bytes -
AccessTokenHelperTest.java
} L51: L52: public void test_getAccessTokenFromRequest_ok0() { L53: final String token = accessTokenHelper.generateAccessToken(); L54: MockletHttpServletRequest req = getMockRequest(); L55: req.addHeader("Authorization", "Bearer " + token); L56: assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req)); L57: } L58: L59: public void test_getAccessTokenFromRequest_ok1() { L60: final String token = accessTokenHelper.generateAccessToken(); L61:...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 3.1K bytes