|
@@ -22,7 +22,7 @@ import java.util.Date;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.dromara.maxkey.authn.SignPrincipal;
|
|
|
-import org.dromara.maxkey.crypto.jwt.HMAC512Service;
|
|
|
+import org.dromara.maxkey.crypto.jwt.Hmac512Service;
|
|
|
import org.dromara.maxkey.entity.idm.UserInfo;
|
|
|
import org.dromara.maxkey.web.WebContext;
|
|
|
import org.joda.time.DateTime;
|
|
@@ -38,7 +38,7 @@ import com.nimbusds.jwt.SignedJWT;
|
|
|
public class AuthJwtService {
|
|
|
private static final Logger _logger = LoggerFactory.getLogger(AuthJwtService.class);
|
|
|
|
|
|
- HMAC512Service hmac512Service;
|
|
|
+ Hmac512Service hmac512Service;
|
|
|
|
|
|
|
|
|
* JWT with Authentication
|
|
@@ -60,7 +60,7 @@ public class AuthJwtService {
|
|
|
.issueTime(currentDateTime.toDate())
|
|
|
.expirationTime(expirationTime)
|
|
|
.claim("locale", userInfo.getLocale())
|
|
|
- .claim("kid", HMAC512Service.MXK_AUTH_JWK)
|
|
|
+ .claim("kid", Hmac512Service.MXK_AUTH_JWK)
|
|
|
.claim("institution", userInfo.getInstId())
|
|
|
.build();
|
|
|
|