@Service @Properties(value={@Property(name="path",value="/",label="%httpsig.path.name",description="%httpsig.path.description"),@Property(name="authtype",value="Signature",propertyPrivate=true),@Property(name="service.ranking",intValue=0,label="%httpsig.ranking.name",propertyPrivate=false,description="%httpsig.ranking.description")}) public class SignatureAuthenticationHandler extends Object implements org.apache.sling.auth.core.spi.AuthenticationHandler
AuthenticationHandler
to support HTTP Signature authentication for one configured user,
such as the admin user or another user designated for use by automated deployment and configuration management
systems. This relies on JCR Token authentication to establish trusted repository login.
TODO: support more than one userConstructor and Description |
---|
SignatureAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(Map<String,Object> props) |
protected void |
deactivate(Map<String,Object> props) |
void |
dropCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.sling.auth.core.spi.AuthenticationInfo |
extractCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
requestCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public org.apache.sling.auth.core.spi.AuthenticationInfo extractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
extractCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
public boolean requestCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
requestCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
IOException
public void dropCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
dropCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
IOException
Copyright © 2014. All Rights Reserved.