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 thecredentials
and the workspace name such as passed toContentRepository.login(javax.jcr.Credentials, String)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull LoginContext
getLoginContext(Credentials credentials, java.lang.String workspaceName)
Returns a new login context instance for handling authentication.
-
-
-
Method Detail
-
getLoginContext
@NotNull @NotNull LoginContext getLoginContext(Credentials credentials, java.lang.String workspaceName) throws javax.security.auth.login.LoginException
Returns a new login context instance for handling authentication.- Parameters:
credentials
- TheCredentials
such as passed to thelogin
method of the repository.workspaceName
- The name of the workspace that is being accessed by the login called.- Returns:
- a new login context
- Throws:
javax.security.auth.login.LoginException
- If an error occurs while creating a new context.
-
-