A C D E F G H I L N O P R S T U V X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractAuthenticationFormServlet - Class in org.apache.sling.auth.core.spi
-
The
AbstractAuthenticationFormServletprovides a basic implementation of a simple servlet to render a login form for authentication purposes. - AbstractAuthenticationFormServlet() - Constructor for class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
- AbstractAuthenticationHandler - Class in org.apache.sling.auth.core.spi
-
Deprecated.since Bundle 1.0.8;
AuthenticationHandlerimplementations should extendDefaultAuthenticationFeedbackHandlerdirectly and use the utility methods in theAuthUtilclass. - AbstractAuthenticationHandler() - Constructor for class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.
- AbstractAuthenticationHandlerHolder - Class in org.apache.sling.auth.core.impl
-
The
AbstractAuthenticationHandlerHolderis a base class to represent authentication handlers (both legacy and new ones) for use in theSlingAuthenticator. - AbstractAuthenticationHandlerHolder(String, ServiceReference) - Constructor for class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
- ACCOUNT_LOCKED - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- ACCOUNT_NOT_FOUND - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- addHolder(Type) - Method in class org.apache.sling.auth.core.impl.PathBasedHolderCache
- ATTR_REQUEST_AUTH_URI_SUFFIX - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The name of the request attribute containing the list of request URI suffixes handled by the default authenticator
org.apache.sling.auth.core.impl.SlingAuthenticator. - auth_annonymous() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- AUTH_HANDLER_BROWSER_ONLY - Static variable in class org.apache.sling.auth.core.AuthConstants
-
Service Registration property which may be set by an
AuthenticationHandlerservice to indicate whether itsAuthenticationHandler.requestCredentials(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method supports non-browser requests (according toAuthUtil.isBrowserRequest(javax.servlet.http.HttpServletRequest)or not. - auth_http() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- auth_http_realm() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- AUTH_INFO_LOGIN - Static variable in class org.apache.sling.auth.core.AuthConstants
-
Marker property in the
AuthenticationInfoobject returned by theAuthenticationHandler.extractCredentials(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method indicating a first authentication considered to be a login. - AUTH_REQUIREMENTS - Static variable in class org.apache.sling.auth.core.AuthConstants
-
Any OSGi service may provide a
sling.auth.requirementsregistration property which is used to dynamically extend the authentication requirements for theAuthenticationSupport. - auth_sudo_cookie() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- auth_sudo_parameter() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- AUTH_TYPE - Static variable in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
The name of the special property providing the authentication type provided by the
AuthenticationHandler. - auth_uri_suffix() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- AuthConstants - Class in org.apache.sling.auth.core
-
The
AuthConstantsprovides a collection of constants used to configure and customize the Sling authentication infrastructure. - authenticate(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.engine.auth.AuthenticationHandler
-
Deprecated.Extracts credential data from the request if at all contained.
- authenticationFailed(HttpServletRequest, HttpServletResponse, AuthenticationInfo) - Method in interface org.apache.sling.auth.core.spi.AuthenticationFeedbackHandler
-
Called if authentication failed with the credentials provided in the
authInfomap. - authenticationFailed(HttpServletRequest, HttpServletResponse, AuthenticationInfo) - Method in class org.apache.sling.auth.core.spi.DefaultAuthenticationFeedbackHandler
-
This default implementation does nothing.
- AuthenticationFeedbackHandler - Interface in org.apache.sling.auth.core.spi
-
The
AuthenticationFeedbackHandlermay be implemented byAuthenticationHandlerservices to request being informed on the success or failure of authentication. - AuthenticationHandler - Interface in org.apache.sling.auth.core.spi
-
The
AuthenticationHandlerinterface defines the service API used by the authentication implementation to support plugin various ways of extracting credentials from the request. - AuthenticationHandler - Interface in org.apache.sling.engine.auth
-
Deprecated.use
AuthenticationHandlerinstead - AuthenticationHandler.FAILURE_REASON_CODES - Enum in org.apache.sling.auth.core.spi
-
This enum indicates the supported detailed login failure reason codes:
invalid_login: indicates username/password mismatch.password_expired: indicates password has expired or was never set and change initial password is enabledaccount_locked: the account was disabled or lockedaccount_not_found: the account was not found (not the same as username password mismatch) - AuthenticationInfo - Class in org.apache.sling.auth.core.spi
-
The
AuthenticationInfoconveys any authentication credentials and/or details extracted by theAuthenticationHandler.extractCredentials(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method from the request. - AuthenticationInfo - Class in org.apache.sling.engine.auth
-
Deprecated.
- AuthenticationInfo(String) - Constructor for class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Creates an instance of this class with just the authentication type.
- AuthenticationInfo(String, String) - Constructor for class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Creates an instance of this class authenticating with the given type and userid.
- AuthenticationInfo(String, String, char[]) - Constructor for class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Creates an instance of this class authenticating with the given type and userid/password connecting.
- AuthenticationInfo(String, Credentials) - Constructor for class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.Creates an instance of this class with the given authentication type and credentials connecting to the default workspace as if the
AuthenticationInfo(String, Credentials, String)method would be called with anullworkspace name. - AuthenticationInfo(String, Credentials, String) - Constructor for class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.Creates an instance of this class with the given authentication type and credentials.
- AuthenticationInfoPostProcessor - Interface in org.apache.sling.auth.core.spi
-
Service interface which allows bundles to modify the AuthenticationInfo object after authentication has been performed.
- authenticationSucceeded(HttpServletRequest, HttpServletResponse, AuthenticationInfo) - Method in interface org.apache.sling.auth.core.spi.AuthenticationFeedbackHandler
-
Called if authentication succeeded with the credentials provided in the
authInfomap. - authenticationSucceeded(HttpServletRequest, HttpServletResponse, AuthenticationInfo) - Method in class org.apache.sling.auth.core.spi.DefaultAuthenticationFeedbackHandler
-
This default implementation calls the
DefaultAuthenticationFeedbackHandler.handleRedirect(HttpServletRequest, HttpServletResponse)method to optionally redirect the request after successful authentication. - AuthenticationSupport - Interface in org.apache.sling.auth.core
-
The
AuthenticationSupportprovides the service API used to implement theHttpContext.handleSecuritymethod as defined in the OSGi Http Service specification. - Authenticator - Interface in org.apache.sling.engine.auth
-
Deprecated.use
AuthenticationSupportinstead - AuthenticatorWebConsolePlugin - Class in org.apache.sling.auth.core.impl
- AuthenticatorWebConsolePlugin(SlingAuthenticator) - Constructor for class org.apache.sling.auth.core.impl.AuthenticatorWebConsolePlugin
- AuthUtil - Class in org.apache.sling.auth.core
-
The
AuthUtilprovides utility functions for implementations ofAuthenticationHandlerservices and users of the Sling authentication infrastructure.
C
- checkReferer(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Check if the request is for this authentication handler.
- clear() - Method in class org.apache.sling.auth.core.impl.PathBasedHolderCache
- clear() - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Clears all properties from the map with the exception of the
AuthenticationInfo.AUTH_TYPEproperty. - compareTo(PathBasedHolder) - Method in class org.apache.sling.auth.core.impl.PathBasedHolder
-
Compares this instance to the
otherPathBasedHolder instance. - CUSTOM_FORM_PATH - Static variable in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
The path to the custom login form.
D
- DEFAULT_FORM_PATH - Static variable in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
The path to the default login form.
- DefaultAuthenticationFeedbackHandler - Class in org.apache.sling.auth.core.spi
- DefaultAuthenticationFeedbackHandler() - Constructor for class org.apache.sling.auth.core.spi.DefaultAuthenticationFeedbackHandler
- doDropCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Calls the actual authentication handler to request the credentials from the client.
- doDropCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- doExtractCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Calls the actual authentication handler to extract the credentials from the request.
- doExtractCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AuthenticatorWebConsolePlugin
- doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Prepares and returns the login form.
- DOING_AUTH - Static variable in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
A special instance of this class which may be returned from the
AuthenticationHandler.extractCredentials(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method to inform the caller, that a response has been sent to the client to request for credentials. - DOING_AUTH - Static variable in class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.This object is returned by the
AuthenticationHandler.authenticate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method to indicate an ongoing authentication transaction. - doPost(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Prepares and returns the login form.
- doRequestCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Calls the actual authentication handler to request the credentials from the client.
- doRequestCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- dropCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Sets the
AuthenticationHandler.PATH_PROPERTYrequest attribute to thisPathBasedHolder.fullPathand calls theAbstractAuthenticationHandlerHolder.doDropCredentials(HttpServletRequest, HttpServletResponse)to have the credentials dropped by the held authentication handler. - dropCredentials(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
Drops any credential and authentication details from the request and asks the client to do the same.
E
- EngineAuthenticationHandlerHolder - Class in org.apache.sling.auth.core.impl.engine
-
The
EngineAuthenticationHandlerHolderclass represents an old-style SlingAuthenticationHandlerservice in the internal data structure of theSlingAuthenticator. - EngineAuthenticationHandlerHolder(String, AuthenticationHandler, ServiceReference) - Constructor for class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- EngineSlingAuthenticator - Class in org.apache.sling.auth.core.impl.engine
-
The
EngineSlingAuthenticatorclass is a simple proxy service providing the old Sling EngineAuthenticatorservice calling into the new standalone Apache SlingAuthenticationSupportservice. - EngineSlingAuthenticator() - Constructor for class org.apache.sling.auth.core.impl.engine.EngineSlingAuthenticator
- equals(Object) - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- equals(Object) - Method in class org.apache.sling.auth.core.impl.PathBasedHolder
-
Returns
trueif the other object is the same as this or if it is an instance of the same class with the same full path and the same provider (ServiceReference). - extractCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Sets the
AuthenticationHandler.PATH_PROPERTYrequest attribute to thisPathBasedHolder.fullPathand calls theAbstractAuthenticationHandlerHolder.extractCredentials(HttpServletRequest, HttpServletResponse)to have the credentials extracted from the request. - extractCredentials(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
Extracts credential data from the request if at all contained.
F
- FAIL_AUTH - Static variable in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
A special instance of this class which may be returned from the
AuthenticationHandler.extractCredentials(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method to inform the caller that credential extraction failed for some reason. - FAILURE_REASON - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
Name of the request attribute which may be set by the
AuthenticationHandler.extractCredentials(HttpServletRequest, HttpServletResponse)method ifAuthenticationInfo.FAIL_AUTHis returned. - FAILURE_REASON_CODE - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
Name of the request attribute which may be set by the
AuthenticationHandler.extractCredentials(HttpServletRequest, HttpServletResponse)method ifAuthenticationInfo.FAIL_AUTHis returned. - findApplicableHolders(HttpServletRequest) - Method in class org.apache.sling.auth.core.impl.PathBasedHolderCache
- fullPath - Variable in class org.apache.sling.auth.core.impl.PathBasedHolder
-
The full registration path of this instance.
G
- getAttributeOrParameter(HttpServletRequest, String, String) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns the value of the named request attribute or parameter as a string as follows: If there is a request attribute of that name, which is a non-empty string, it is returned. If there is a non-empty request parameter of that name, this parameter is returned.
- getAttributeOrParameter(HttpServletRequest, String, String) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.getAttributeOrParameter(HttpServletRequest, String, String) - getAuthType() - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Returns the authentication type stored as the
AuthenticationInfo.AUTH_TYPEproperty in this map. - getAuthType() - Method in class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.Returns type of authentication provisioning.
- getContextPath(HttpServletRequest) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns the context path for the authentication form request.
- getCredentials() - Method in class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.Returns the credentials extracted from the client request to use for authentication.
- getCustomFormPath() - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns the path to the custom login form to load through the class loader of this instance using
Class.getResourceAsStream. - getDefaultFormPath() - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns the path to the default login form to load through the class loader of this instance using
Class.getResourceAsStream. - getFeedbackHandler() - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Returns a feedback handler provided by the authentication handler held by this instance or
nullif none is provided. - getFeedbackHandler() - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- getForm(HttpServletRequest) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns the form to be sent back to the client for login providing an optional informational message and the optional target to redirect to after successfully logging in.
- getHolders() - Method in class org.apache.sling.auth.core.impl.PathBasedHolderCache
- getLoginResource(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns any resource target to redirect to after successful authentication.
- getLoginResource(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.getLoginResource(HttpServletRequest, String) - getPassword() - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Returns the password stored as the
ResourceResolverFactory.PASSWORDproperty ornullif the password is not set in this map. - getReason(HttpServletRequest) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns an informational message according to the value provided in the
j_reasonrequest parameter. - getResource(HttpServletRequest) - Method in class org.apache.sling.auth.core.spi.AbstractAuthenticationFormServlet
-
Returns the path to the resource to which the request should be redirected after successfully completing the form or an empty string if there is no
resourcerequest parameter. - getUser() - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Returns the user name stored as the
ResourceResolverFactory.USERproperty ornullif the user is not set in this map. - getWorkspaceName() - Method in class org.apache.sling.engine.auth.AuthenticationInfo
-
Deprecated.Returns the name of the workspace the user contained in this instance wishes to connect to.
H
- handleRedirect(HttpServletRequest, HttpServletResponse) - Static method in class org.apache.sling.auth.core.spi.DefaultAuthenticationFeedbackHandler
-
Handles an optional request for a redirect after successful authentication and
trueif the request has been redirected. - handleSecurity(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.auth.core.AuthenticationSupport
-
Handles security on behalf of a custom OSGi Http Service
HttpContextinstance extracting credentials from the request using any registeredAuthenticationHandlerservices. - handleSecurity(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticator
-
Checks the authentication contained in the request.
- hashCode() - Method in class org.apache.sling.auth.core.impl.PathBasedHolder
-
Returns the hash code of the full path.
I
- INVALID_LOGIN - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- isAjaxRequest(HttpServletRequest) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns
trueif the request is to be considered an AJAX request placed using theXMLHttpRequestbrowser host object. - isBrowserRequest(HttpServletRequest) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns
trueif the given request can be assumed to be sent by a client browser such as Firefix, Internet Explorer, etc. - isRedirectValid(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns
trueif the given redirecttargetis valid according to the following list of requirements: Thetargetis neithernullnor an empty string Thetargetis not an URL which is identified by the character sequence://separating the scheme from the host Thetargetis normalized such that it contains no consecutive slashes and no path segment contains a single or double dot Thetargetmust be prefixed with the servlet context path If aResourceResolveris available as a request attribute thetarget(without the servlet context path prefix) must resolve to an existing resource If aResourceResolveris not available as a request attribute thetargetmust be an absolute path starting with a slash character does not contain any of the characters<,>,', or"in plain or URL encoding - isRedirectValid(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.This method has been introduced after Bundle release 1.0.6 but has been replaced with
AuthUtil.isRedirectValid(HttpServletRequest, String). Use the latter method. - isValidateRequest(HttpServletRequest) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Returns
trueif the the client just asks for validation of submitted username/password credentials. - isValidateRequest(HttpServletRequest) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.isValidateRequest(HttpServletRequest)
L
- login(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.engine.EngineSlingAuthenticator
- login(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticator
-
Requests authentication information from the client.
- login(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.engine.auth.Authenticator
-
Deprecated.Finds an
AuthenticationHandlerfor the given request and call itsAuthenticationHandler.requestAuthentication(HttpServletRequest, HttpServletResponse)method to initiate an authentication process with the client to login to Sling. - LoginServlet - Class in org.apache.sling.auth.core.impl
-
The
LoginServletlets the Authenticator do the login. - LoginServlet() - Constructor for class org.apache.sling.auth.core.impl.LoginServlet
- logout(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.engine.EngineSlingAuthenticator
- logout(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticator
-
Logs out the user calling all applicable
AuthenticationHandlerauthentication handlers. - LogoutServlet - Class in org.apache.sling.auth.core.impl
-
The
LogoutServletlets the Authenticator do the logout. - LogoutServlet() - Constructor for class org.apache.sling.auth.core.impl.LogoutServlet
- LogoutServlet.Config - Annotation Type in org.apache.sling.auth.core.impl
N
- NoAuthenticationHandlerException - Exception in org.apache.sling.engine.auth
-
Deprecated.see
Authenticator - NoAuthenticationHandlerException() - Constructor for exception org.apache.sling.engine.auth.NoAuthenticationHandlerException
-
Deprecated.
O
- org.apache.sling.auth.core - package org.apache.sling.auth.core
-
Provides the authentication helper service as well as a number of utility functions in the
AuthUtilclass. - org.apache.sling.auth.core.impl - package org.apache.sling.auth.core.impl
- org.apache.sling.auth.core.impl.engine - package org.apache.sling.auth.core.impl.engine
- org.apache.sling.auth.core.spi - package org.apache.sling.auth.core.spi
-
Provides API to be implemented by provides of authentication mechanisms.
- org.apache.sling.engine.auth - package org.apache.sling.engine.auth
-
Provides the original authentication handler service API initially bundled with the Sling Engine bundle.
P
- PAR_J_VALIDATE - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The name of the request parameter indicating that the submitted username and password should just be checked and a status code be set for success (200/OK) or failure (403/FORBIDDEN).
- PASSWORD_EXPIRED - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- PATH_PROPERTY - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
The name of the service registration property listing one or more URL paths for which the authentication handler is to be used.
- PATH_PROPERTY - Static variable in interface org.apache.sling.engine.auth.AuthenticationHandler
-
Deprecated.An authentication handler is associated with url paths.
- PathBasedHolder - Class in org.apache.sling.auth.core.impl
-
The
PathBasedHolderprovides the basic abstraction for managing authentication handler and authentication requirements in theSlingAuthenticatorwith the following base functionality: Provide location of control through its path fields Support orderability of instances by beingComparableand ordering according to thePathBasedHolder.fullPathand theServiceReferenceof the provider service SupportPathBasedHolder.equals(Object)andPathBasedHolder.hashCode()compatible with theComparableimplementation. - PathBasedHolder(String, ServiceReference<?>) - Constructor for class org.apache.sling.auth.core.impl.PathBasedHolder
-
Sets up this instance with the given configuration URL provided by the given
serviceReference. - PathBasedHolderCache<Type extends PathBasedHolder> - Class in org.apache.sling.auth.core.impl
- PathBasedHolderCache() - Constructor for class org.apache.sling.auth.core.impl.PathBasedHolderCache
- postProcess(AuthenticationInfo, HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.auth.core.spi.AuthenticationInfoPostProcessor
-
Perform some post-processing on the AuthenticationInfo object.
- put(String, Object) - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Sets or resets a property with the given
keyto a newvalue.
R
- REDIRECT_PARAMETER - Static variable in interface org.apache.sling.auth.core.AuthenticationSupport
-
The name of the request parameter indicating where to redirect to after successful authentication (and optional impersonation).
- remove(Object) - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
-
Removes the entry with the given
keyand returns its former value (if existing). - removeHolder(Type) - Method in class org.apache.sling.auth.core.impl.PathBasedHolderCache
- REQUEST_ATTRIBUTE_RESOLVER - Static variable in interface org.apache.sling.auth.core.AuthenticationSupport
-
The name of the request attribute set by the
AuthenticationSupport.handleSecurity(HttpServletRequest, HttpServletResponse)method if authentication succeeds andtrueis returned. - REQUEST_LOGIN_PARAMETER - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
The request parameter which may be used to explicitly select an authentication handler by its
typeif authentication will be requested throughAuthenticationHandler.requestCredentials(HttpServletRequest, HttpServletResponse). - requestAuthentication(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.engine.auth.AuthenticationHandler
-
Deprecated.Requests authentication information from the client.
- requestCredentials(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
Sets the
AuthenticationHandler.PATH_PROPERTYrequest attribute to thisPathBasedHolder.fullPathand calls theAbstractAuthenticationHandlerHolder.doRequestCredentials(HttpServletRequest, HttpServletResponse)to have the credentials requested from the client. - requestCredentials(HttpServletRequest, HttpServletResponse) - Method in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
Requests authentication information from the client.
- requestDestroyed(ServletRequestEvent) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticator
- requestInitialized(ServletRequestEvent) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticator
S
- sendInvalid(HttpServletRequest, HttpServletResponse) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Sends a 403/FORBIDDEN response optionally stating the reason for this response code in the
AuthConstants.X_REASONheader. - sendInvalid(HttpServletRequest, HttpServletResponse) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.sendInvalid(HttpServletRequest, HttpServletResponse) - sendRedirect(HttpServletRequest, HttpServletResponse, String, Map<String, String>) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Redirects to the given target path appending any parameters provided in the parameter map.
- sendRedirect(HttpServletRequest, HttpServletResponse, String, Map<String, String>) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.sendRedirect(HttpServletRequest, HttpServletResponse, String, Map) - sendValid(HttpServletResponse) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Sends a 200/OK response to a credential validation request.
- sendValid(HttpServletResponse) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.sendValid(HttpServletResponse) - service(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.auth.core.impl.AuthenticatorWebConsolePlugin
- service(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class org.apache.sling.auth.core.impl.LoginServlet
- service(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class org.apache.sling.auth.core.impl.LogoutServlet
- SERVICE_NAME - Static variable in interface org.apache.sling.auth.core.AuthenticationSupport
-
The name under which this service is registered.
- SERVICE_NAME - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
The name under which an implementation of this interface must be registered to be used as an authentication handler.
- SERVICE_NAME - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationInfoPostProcessor
-
The name under which an implementation of this interface must be registered to be used as an authentication info post processor.
- serviceChanged(ServiceEvent) - Method in class org.apache.sling.auth.core.impl.SlingAuthenticatorServiceListener
- SERVLET_PATH - Static variable in class org.apache.sling.auth.core.impl.LoginServlet
-
The servlet is registered on this path, and the authenticator allows any requests to that path, without authentication
- SERVLET_PATH - Static variable in class org.apache.sling.auth.core.impl.LogoutServlet
-
The servlet is registered on this path.
- setAuthType(String) - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
- setLoginResourceAttribute(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.AuthUtil
-
Ensures and returns the
Authenticator.LOGIN_RESOURCErequest attribute is set to a non-null, non-empty string. - setLoginResourceAttribute(HttpServletRequest, String) - Static method in class org.apache.sling.auth.core.spi.AbstractAuthenticationHandler
-
Deprecated.since Bundle 1.0.8, use
AuthUtil.setLoginResourceAttribute(HttpServletRequest, String) - setPassword(char[]) - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
- setUser(String) - Method in class org.apache.sling.auth.core.spi.AuthenticationInfo
- sling_auth_anonymous_password() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- sling_auth_anonymous_user() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- sling_auth_requirements() - Method in annotation type org.apache.sling.auth.core.impl.SlingAuthenticator.Config
- sling_servlet_methods() - Method in annotation type org.apache.sling.auth.core.impl.LogoutServlet.Config
- SlingAuthenticator - Class in org.apache.sling.auth.core.impl
-
The
SlingAuthenticatorclass is the default implementation for handling authentication. - SlingAuthenticator() - Constructor for class org.apache.sling.auth.core.impl.SlingAuthenticator
- SlingAuthenticator.Config - Annotation Type in org.apache.sling.auth.core.impl
- SlingAuthenticatorServiceListener - Class in org.apache.sling.auth.core.impl
T
- TOPIC_LOGIN - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The topic for the OSGi event which is sent when a user has logged in successfully.
- TOPIC_LOGIN_FAILED - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The topic for the OSGi event which is sent when a user has failed to login successfully.
- toString() - Method in class org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- toString() - Method in enum org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
- TYPE_PROPERTY - Static variable in interface org.apache.sling.auth.core.spi.AuthenticationHandler
-
The name of the service registration property (single string) providing the authentication type of authentication handler.
U
- UNKNOWN - org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
V
- valueOf(String) - Static method in enum org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
-
Returns an array containing the constants of this enum type, in the order they are declared.
X
- X_REASON - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The name of the request header set by the
AuthUtil.sendInvalid(HttpServletRequest, HttpServletResponse)method if the provided credentials cannot be used for login. - X_REASON_CODE - Static variable in class org.apache.sling.auth.core.AuthConstants
-
The name of the request header set by the
AuthUtil.sendInvalid(HttpServletRequest, HttpServletResponse)method if the provided credentials cannot be used for login.
All Classes All Packages