Skip to content

Commit 9915d18

Browse files
committed
aes encode decode
1 parent d25c2f5 commit 9915d18

File tree

1 file changed

+12
-0
lines changed
  • springboot-starter-security-jwt/src/main/java/com/codingapi/springboot/security/jwt

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.codingapi.springboot.security.jwt;
2+
3+
import org.springframework.security.core.context.SecurityContextHolder;
4+
5+
public class TokenContext {
6+
7+
private TokenContext(){}
8+
9+
public static Token current(){
10+
return (Token)SecurityContextHolder.getContext().getAuthentication().getCredentials();
11+
}
12+
}

0 commit comments

Comments
 (0)