Package org.imixs.security.oidc
Class BearerTokenValidator
java.lang.Object
org.imixs.security.oidc.BearerTokenValidator
The BearerTokenValidator provides static utility methods to validate and
decode Bearer JWT tokens.
It supports RS256 signed tokens based on the public keys (JWKS) fetched from
a trusted* OpenID Connect (OIDC) provider. The class verifies the token
signature and expiration.
It also allows extracting standard claims like username and roles from the
token.
In addition the BearerTokenValidator supports fetching additional claims
from the UserInfo endpoint when needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.security.enterprise.AuthenticationStatushandle(jakarta.servlet.http.HttpServletRequest request, jakarta.security.enterprise.authentication.mechanism.http.HttpMessageContext context)
-
Constructor Details
-
BearerTokenValidator
public BearerTokenValidator()
-
-
Method Details
-
handle
public jakarta.security.enterprise.AuthenticationStatus handle(jakarta.servlet.http.HttpServletRequest request, jakarta.security.enterprise.authentication.mechanism.http.HttpMessageContext context)
-