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 StringDEFAULT_FCREPO_CONFIG_FILE_PROP_SOURCEstatic StringDEFAULT_FCREPO_HOME_VALUEstatic StringFCREPO_AUTH_ENABLEDstatic StringFCREPO_AUTH_PRINCIPAL_DELEGATE_ENABLEDstatic StringFCREPO_AUTH_PRINCIPAL_HEADER_ENABLEDstatic StringFCREPO_AUTH_PRINCIPAL_ROLES_ENABLEDstatic StringFCREPO_CONFIG_FILE_PROP_SOURCEstatic StringFCREPO_HOME_PROPERTY
-
Constructor Summary
Constructors Constructor Description AuthPropsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthPrincipalHeaderName()StringgetAuthPrincipalHeaderSeparator()List<String>getAuthPrincipalRolesList()StringgetGroupAgentBaseUri()PathgetRootAuthAclPath()StringgetUserAgentBaseUri()booleanisAuthPrincipalDelegateEnabled()booleanisAuthPrincipalHeaderEnabled()booleanisAuthPrincipalRolesEnabled()voidsetRootAuthAclPath(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
-
-