public class AuthContextProvider extends Object
AuthContextProvider
defines how the current request for login is
handled. By default the local repository configuration
takes precedence over JAAS configuration.
If no local configuration is present a JAAS configuration must be provided
otherwise getAuthContext(javax.jcr.Credentials, javax.security.auth.Subject, javax.jcr.Session, org.apache.jackrabbit.core.security.principal.PrincipalProviderRegistry, java.lang.String, java.lang.String)
fails with RepositoryException
.Constructor and Description |
---|
AuthContextProvider(String appName,
LoginModuleConfig config) |
Modifier and Type | Method and Description |
---|---|
AuthContext |
getAuthContext(javax.jcr.Credentials credentials,
Subject subject,
javax.jcr.Session session,
PrincipalProviderRegistry principalProviderRegistry,
String adminId,
String anonymousId) |
Properties[] |
getModuleConfig() |
boolean |
isJAAS() |
boolean |
isLocal() |
public AuthContextProvider(String appName, LoginModuleConfig config)
appName
- LoginConfig application name used for this instanceconfig
- optional LoginModule-configuration to use without JAASpublic AuthContext getAuthContext(javax.jcr.Credentials credentials, Subject subject, javax.jcr.Session session, PrincipalProviderRegistry principalProviderRegistry, String adminId, String anonymousId) throws javax.jcr.RepositoryException
credentials
- subject
- session
- principalProviderRegistry
- adminId
- anonymousId
- javax.jcr.RepositoryException
- in case neither an JAASContext
nor a LocalContext
can be successfully created.public boolean isJAAS()
Configuration
public boolean isLocal()
public Properties[] getModuleConfig()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.