Last active
December 11, 2018 12:18
-
-
Save OmarElgabry/6ad1e7271ab24d770c5b0fdadcb0edcc to your computer and use it in GitHub Desktop.
JWT Configurations Class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class JwtConfig { | |
| @Value("${security.jwt.uri:/auth/**}") | |
| private String Uri; | |
| @Value("${security.jwt.header:Authorization}") | |
| private String header; | |
| @Value("${security.jwt.prefix:Bearer }") | |
| private String prefix; | |
| @Value("${security.jwt.expiration:#{24*60*60}}") | |
| private int expiration; | |
| @Value("${security.jwt.secret:JwtSecretKey}") | |
| private String secret; | |
| // getters ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment