public class BackendSecuritySpec extends Object
| Constructor and Description |
|---|
BackendSecuritySpec() |
| Modifier and Type | Method and Description |
|---|---|
Hashtable<String,String> |
getDefaultSecuritySpec()
Get the default backend security properties.
|
Hashtable<String,String> |
getSecuritySpec(String roleKey)
Get security properties for either the a backend service or a method
within that backend service.
|
Hashtable<String,String> |
getSecuritySpec(String serviceRoleID,
String methodName)
Get security properties for either the a backend service or a method
within that backend service.
|
Set<String> |
listRoleKeys() |
void |
setSecuritySpec(String serviceRoleID,
String methodName,
Hashtable<String,String> properties)
Set the security properties at the backend service or for a method of
that backend service.
|
public void setSecuritySpec(String serviceRoleID, String methodName, Hashtable<String,String> properties) throws GeneralException
serviceRoleID - -
the role identifier for a service. Valid values for this parameter
are: - a sDep PID for a backend service - "default" to indicate
the default properties for any service - "fedoraInternalCall-1"
for Fedora calling back to itself as a servicemethodName - -
optional method name within the backend service. If specified
security properties at the service method level will be recorded.
If null, service properties at the service level will be recorded.properties - GeneralExceptionpublic Hashtable<String,String> getDefaultSecuritySpec()
public Hashtable<String,String> getSecuritySpec(String serviceRoleID, String methodName)
serviceRoleID - -
role identifier for a backend service. Valid options: - "default"
(the overall default for backend services) -
"fedoraInternalCall-1" (the role key for fedora calling back to
itself) - A sDep PID (e.g., "sDep:9") as the identifier for a
backend servicemethodName - -
a method name that is specified within a sDep service. If values
is null, then this method will return the security properties
defined for the backend service specified by the serviceRoleID
parameter.public Hashtable<String,String> getSecuritySpec(String roleKey)
roleKey - =
the role identifier for the backend service, for example: -
"default" (the overall default for backend services) -
"fedoraInternalCall-1" (the role key for fedora calling back to
itself) - "sDep:9" (the role key for a backend service) -
"sDe:9/getThumb" (the role key for a method within a backend
service)Copyright © 2013 DuraSpace. All Rights Reserved.