Package org.apache.sling.auth.core.spi
Interface AuthenticationInfoPostProcessor
-
@ConsumerType public interface AuthenticationInfoPostProcessor
Service interface which allows bundles to modify theAuthenticationInfoobject right after oneAuthenticationHandlerhas returned an {AuthenticationInfofrom theAuthenticationHandler.extractCredentials(HttpServletRequest, HttpServletResponse)method or an anonymousAuthenticationInfohas been created. This service is called before theResourceResolveris created and any login into the resource providers (such as a JCR repository or other data store) happens. However, theAuthenticationHandlermight actually do such a login and pass on the information to the resource provider through theAuthenticationInfo. This service interface is useful to access and modify the {AuthenticationInfobefore it is passed to theResourceResolverFactoryto create aResourceResolver.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_NAMEThe name under which an implementation of this interface must be registered to be used as an authentication info post processor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostProcess(AuthenticationInfo info, HttpServletRequest request, HttpServletResponse response)Perform some post-processing on the AuthenticationInfo object.
-
-
-
Field Detail
-
SERVICE_NAME
static final java.lang.String SERVICE_NAME
The name under which an implementation of this interface must be registered to be used as an authentication info post processor.- See Also:
- Constant Field Values
-
-
Method Detail
-
postProcess
void postProcess(AuthenticationInfo info, HttpServletRequest request, HttpServletResponse response) throws LoginException
Perform some post-processing on the AuthenticationInfo object.- Parameters:
info- The authentication inforequest- The current requestresponse- The current response- Throws:
LoginException- if SlingAuthenticator should handle the exception (eg. set the correct status in the response) SlingException will not be caught by SlingAuthenticator, in this case the method has to set the accurate status in the responseSlingException- may be thrown to convey any problem while handling the credentials
-
-