org.apache.sling.jackrabbit.usermanager.impl.post
Class AbstractUserPostServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by org.apache.sling.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
                  extended by org.apache.sling.jackrabbit.usermanager.impl.post.AbstractUserPostServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
ChangeUserPasswordServlet, CreateUserServlet, UpdateUserServlet

public abstract class AbstractUserPostServlet
extends AbstractAuthorizablePostServlet

Base class for servlets manipulating users

See Also:
Serialized Form

Constructor Summary
AbstractUserPostServlet()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
           
protected  void deactivate(org.osgi.service.component.ComponentContext context)
           
protected  String digestPassword(String pwd)
          Digest the given password using the configured digest algorithm
protected  String digestPassword(String pwd, String digest)
          Digest the given password using the given digest algorithm
 
Methods inherited from class org.apache.sling.jackrabbit.usermanager.impl.post.AbstractAuthorizablePostServlet
collectContent, createHtmlResponse, doPost, externalizePath, getItemPath, getRedirectUrl, handleOperation, hasItemPathPrefix, isSetStatus, processDeletes, requireItemPathPrefix, writeContent
 
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUserPostServlet

public AbstractUserPostServlet()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext context)
Overrides:
activate in class AbstractAuthorizablePostServlet

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext context)
Overrides:
deactivate in class AbstractAuthorizablePostServlet

digestPassword

protected String digestPassword(String pwd)
                         throws IllegalArgumentException
Digest the given password using the configured digest algorithm

Parameters:
pwd - the value to digest
Returns:
the digested value
Throws:
IllegalArgumentException

digestPassword

protected String digestPassword(String pwd,
                                String digest)
                         throws IllegalArgumentException
Digest the given password using the given digest algorithm

Parameters:
pwd - the value to digest
digest - the digest algorithm to use for digesting
Returns:
the digested value
Throws:
IllegalArgumentException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.