Interface LoginContextProvider
public interface LoginContextProvider
Configurable provider taking care of building login contexts for
the desired authentication mechanism.
This provider defines a single method getLoginContext(javax.jcr.Credentials, String)
that takes the credentials and the workspace name such
as passed to ContentRepository.login(javax.jcr.Credentials, String).
-
Method Summary
Modifier and TypeMethodDescription@NotNull LoginContextgetLoginContext(Credentials credentials, String workspaceName) Returns a new login context instance for handling authentication.
-
Method Details
-
getLoginContext
@NotNull @NotNull LoginContext getLoginContext(Credentials credentials, String workspaceName) throws LoginException Returns a new login context instance for handling authentication.- Parameters:
credentials- TheCredentialssuch as passed to theloginmethod of the repository.workspaceName- The name of the workspace that is being accessed by the login called.- Returns:
- a new login context
- Throws:
LoginException- If an error occurs while creating a new context.
-