Package org.apache.sling.engine.auth
Class AuthenticationInfo
java.lang.Object
org.apache.sling.engine.auth.AuthenticationInfo
Deprecated.
The
AuthenticationInfo
defines the data returned from the
AuthenticationHandler.authenticate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuthenticationInfo
Deprecated.This object is returned by theAuthenticationHandler.authenticate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method to indicate an ongoing authentication transaction. -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationInfo
(String authType, javax.jcr.Credentials credentials) Deprecated.Creates an instance of this class with the given authentication type and credentials connecting to the default workspace as if theAuthenticationInfo(String, Credentials, String)
method would be called with anull
workspace name.AuthenticationInfo
(String authType, javax.jcr.Credentials credentials, String workspaceName) Deprecated.Creates an instance of this class with the given authentication type and credentials. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns type of authentication provisioning.javax.jcr.Credentials
Deprecated.Returns the credentials extracted from the client request to use for authentication.Deprecated.Returns the name of the workspace the user contained in this instance wishes to connect to.
-
Field Details
-
DOING_AUTH
Deprecated.This object is returned by theAuthenticationHandler.authenticate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method to indicate an ongoing authentication transaction.
-
-
Constructor Details
-
AuthenticationInfo
Deprecated.Creates an instance of this class with the given authentication type and credentials connecting to the default workspace as if theAuthenticationInfo(String, Credentials, String)
method would be called with anull
workspace name.- Parameters:
authType
- The authentication type, must not benull
.credentials
- The credentials, must not benull
.- See Also:
-
AuthenticationInfo
Deprecated.Creates an instance of this class with the given authentication type and credentials.- Parameters:
authType
- The authentication type, must not benull
.credentials
- The credentials, must not benull
.workspaceName
- The name of the workspace to connect to, may benull
to connect to the default workspace.- See Also:
-
-
Method Details
-
getAuthType
Deprecated.Returns type of authentication provisioning.If authentication is taking place through one of the standard ways, such as Basic or Digest, the return value is one of the predefined constants of the
HttpServletRequest
interface. Otherwise the value may be specific to theAuthenticationHandler
implementation.- Returns:
- The authentication type
-
getCredentials
public javax.jcr.Credentials getCredentials()Deprecated.Returns the credentials extracted from the client request to use for authentication.- Returns:
- The extracted credentials
-
getWorkspaceName
Deprecated.Returns the name of the workspace the user contained in this instance wishes to connect to. This may benull
, in which case the user is connected to the default workspace.- Returns:
- The name of the workspace
-
AuthenticationHandler