Package com.sap.cloud.security.servlet
Interface TokenAuthenticator
-
public interface TokenAuthenticatorTokenAuthenticator is used to authenticate a user sending servlet requests to a service via token. It produces aTokenAuthenticationResult. The result contains the necessary information to perform container specific authentication.
SeeJettyTokenAuthenticatorin the java-security-test library on how this is used with jetty to perform authentication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenAuthenticationResultvalidateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)Performs the authentication for the given request.
-
-
-
Method Detail
-
validateRequest
TokenAuthenticationResult validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
Performs the authentication for the given request.- Parameters:
request- servlet request.response- servlet response.- Returns:
- a
TokenAuthenticationResult.
-
-