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(Credentials credentials,
Subject subject,
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(Credentials credentials, Subject subject, Session session, PrincipalProviderRegistry principalProviderRegistry, String adminId, String anonymousId) throws RepositoryException
credentials
- subject
- session
- principalProviderRegistry
- adminId
- anonymousId
- 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–2021 The Apache Software Foundation. All rights reserved.