Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GET
- @Path("fakeGithub")
- public Response authorizationCheck(@HeaderParam(HttpHeaders.AUTHORIZATION) String tokenString) {
- if (!isBlank(tokenString) && tokenString.contains("token ")) {
- if (!isBlank(tokenString.substring(6)))) {
- return Response.status(200).entity(false).build();
- }
- }
- return Response.status(401).entity(false).build();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement