Package org.fcrepo.config
Class AuthPropsConfig
- java.lang.Object
-
- org.fcrepo.config.AuthPropsConfig
-
@Configuration public class AuthPropsConfig extends Object
Auth related configuration properties- Author:
- pwinckles
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
static String
DEFAULT_FCREPO_HOME_VALUE
static String
FCREPO_AUTH_ENABLED
static String
FCREPO_AUTH_PRINCIPAL_DELEGATE_ENABLED
static String
FCREPO_AUTH_PRINCIPAL_HEADER_ENABLED
static String
FCREPO_AUTH_PRINCIPAL_ROLES_ENABLED
static String
FCREPO_CONFIG_FILE_PROP_SOURCE
static String
FCREPO_HOME_PROPERTY
-
Constructor Summary
Constructors Constructor Description AuthPropsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Path
createDirectories(Path path)
String
getAuthPrincipalHeaderName()
String
getAuthPrincipalHeaderSeparator()
List<String>
getAuthPrincipalRolesList()
String
getGroupAgentBaseUri()
Path
getRootAuthAclPath()
String
getUserAgentBaseUri()
boolean
isAuthPrincipalDelegateEnabled()
boolean
isAuthPrincipalHeaderEnabled()
boolean
isAuthPrincipalRolesEnabled()
void
setRootAuthAclPath(Path rootAuthAclPath)
-
-
-
Field Detail
-
FCREPO_AUTH_ENABLED
public static final String FCREPO_AUTH_ENABLED
- See Also:
- Constant Field Values
-
FCREPO_AUTH_PRINCIPAL_HEADER_ENABLED
public static final String FCREPO_AUTH_PRINCIPAL_HEADER_ENABLED
- See Also:
- Constant Field Values
-
FCREPO_AUTH_PRINCIPAL_ROLES_ENABLED
public static final String FCREPO_AUTH_PRINCIPAL_ROLES_ENABLED
- See Also:
- Constant Field Values
-
FCREPO_AUTH_PRINCIPAL_DELEGATE_ENABLED
public static final String FCREPO_AUTH_PRINCIPAL_DELEGATE_ENABLED
- See Also:
- Constant Field Values
-
FCREPO_HOME_PROPERTY
public static final String FCREPO_HOME_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_FCREPO_HOME_VALUE
public static final String DEFAULT_FCREPO_HOME_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
public static final String DEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCE
- See Also:
- Constant Field Values
-
FCREPO_CONFIG_FILE_PROP_SOURCE
public static final String FCREPO_CONFIG_FILE_PROP_SOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthPropsConfig
public AuthPropsConfig()
-
-
Method Detail
-
getRootAuthAclPath
public Path getRootAuthAclPath()
- Returns:
- the path to the root auth acl to use instead of the default
-
setRootAuthAclPath
public void setRootAuthAclPath(Path rootAuthAclPath)
- Parameters:
rootAuthAclPath
- path to custom root auth acl
-
getUserAgentBaseUri
public String getUserAgentBaseUri()
- Returns:
- the user agent base uri, if specified
-
getGroupAgentBaseUri
public String getGroupAgentBaseUri()
- Returns:
- the user agent base uri, if specified
-
getAuthPrincipalHeaderName
public String getAuthPrincipalHeaderName()
- Returns:
- the header name for the auth principal header provider
-
getAuthPrincipalHeaderSeparator
public String getAuthPrincipalHeaderSeparator()
- Returns:
- the separator for the auth principal header provider
-
getAuthPrincipalRolesList
public List<String> getAuthPrincipalRolesList()
- Returns:
- the list of auth roles
-
isAuthPrincipalHeaderEnabled
public boolean isAuthPrincipalHeaderEnabled()
- Returns:
- header principal provider enabled
-
isAuthPrincipalRolesEnabled
public boolean isAuthPrincipalRolesEnabled()
- Returns:
- roles principal provider enabled
-
isAuthPrincipalDelegateEnabled
public boolean isAuthPrincipalDelegateEnabled()
- Returns:
- delegate principal provider enabled
-
createDirectories
protected Path createDirectories(Path path) throws IOException
- Throws:
IOException
-
-