Skip to content

Instantly share code, notes, and snippets.

@OmarElgabry
Last active December 11, 2018 12:18
Show Gist options
  • Select an option

  • Save OmarElgabry/6ad1e7271ab24d770c5b0fdadcb0edcc to your computer and use it in GitHub Desktop.

Select an option

Save OmarElgabry/6ad1e7271ab24d770c5b0fdadcb0edcc to your computer and use it in GitHub Desktop.
JWT Configurations Class
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