Package com.sap.cloud.security.servlet
Interface TokenAuthenticator
public interface TokenAuthenticator
TokenAuthenticator is used to authenticate a user sending servlet requests to
a service via token. It produces a
See
TokenAuthenticationResult
. The
result contains the necessary information to perform container specific
authentication. See
JettyTokenAuthenticator
in the java-security-test library on how
this is used with jetty to perform authentication.-
Method Summary
Modifier and TypeMethodDescriptionvalidateRequest
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Performs the authentication for the given request.
-
Method Details
-
validateRequest
TokenAuthenticationResult validateRequest(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Performs the authentication for the given request.- Parameters:
request
- servlet request.response
- servlet response.- Returns:
- a
TokenAuthenticationResult
.
-