public final class ServletContainerAuthenticationProvider extends Object implements org.modeshape.jcr.security.AuthenticationProvider
Modifier and Type | Field and Description |
---|---|
static String |
FEDORA_ADMIN_ROLE
User role for Fedora's admin users
|
static String |
FEDORA_USER_ROLE
User role for Fedora's ordinary users
|
Modifier and Type | Method and Description |
---|---|
org.modeshape.jcr.ExecutionContext |
authenticate(javax.jcr.Credentials credentials,
String repositoryName,
String workspaceName,
org.modeshape.jcr.ExecutionContext repositoryContext,
Map<String,Object> sessionAttributes)
Authenticate the user that is using the supplied credentials.
|
FedoraAuthorizationDelegate |
getFad() |
static org.modeshape.jcr.security.AuthenticationProvider |
getInstance()
Provides the singleton bean to ModeShape via reflection based on class
name.
|
Set<PrincipalProvider> |
getPrincipalProviders() |
void |
setFad(FedoraAuthorizationDelegate fad) |
void |
setPrincipalProviders(Set<PrincipalProvider> principalProviders) |
public static final String FEDORA_ADMIN_ROLE
public static final String FEDORA_USER_ROLE
public static org.modeshape.jcr.security.AuthenticationProvider getInstance()
public Set<PrincipalProvider> getPrincipalProviders()
public void setPrincipalProviders(Set<PrincipalProvider> principalProviders)
principalProviders
- the principalProviders to setpublic org.modeshape.jcr.ExecutionContext authenticate(javax.jcr.Credentials credentials, String repositoryName, String workspaceName, org.modeshape.jcr.ExecutionContext repositoryContext, Map<String,Object> sessionAttributes)
If the credentials given establish that the authenticated user has the fedoraAdmin role, construct an ExecutionContext with FedoraAdminSecurityContext as the SecurityContext. Otherwise, construct an ExecutionContext with FedoraUserSecurityContext as the SecurityContext.
If the authenticated user does not have the fedoraAdmin role, session attributes will be assigned in the sessionAttributes map:
authenticate
in interface org.modeshape.jcr.security.AuthenticationProvider
public FedoraAuthorizationDelegate getFad()
public void setFad(FedoraAuthorizationDelegate fad)
fad
- the authorization delegate to setCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.