Class JwtTokenService
java.lang.Object
com.loomcache.springboot.security.JwtTokenService
@Service
@ConditionalOnProperty(prefix="loomcache.security.jwt",
name="enabled",
havingValue="true")
public class JwtTokenService
extends Object
Issues short-lived HMAC-signed JWTs for authenticated REST principals.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(String accessToken) org.springframework.security.core.Authenticationauthenticate(String accessToken, X509Certificate[] clientCertificates) issue(org.springframework.security.core.Authentication authentication) issue(org.springframework.security.core.Authentication authentication, X509Certificate clientCertificate) void
-
Constructor Details
-
JwtTokenService
-
-
Method Details
-
issue
-
issue
public TokenResponse issue(org.springframework.security.core.Authentication authentication, X509Certificate clientCertificate) -
authenticate
-
authenticate
public org.springframework.security.core.Authentication authenticate(String accessToken, X509Certificate[] clientCertificates) -
revoke
-