|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.security.BackendSecuritySpec
public class BackendSecuritySpec
Class that instantiates information parsed from the beSecurity.xml file. Methods are provided to set and get backend security properties by role id.
| Constructor Summary | |
|---|---|
BackendSecuritySpec()
|
|
| Method Summary | |
|---|---|
java.util.Hashtable |
getDefaultSecuritySpec()
Get the default backend security properties. |
java.util.Hashtable |
getSecuritySpec(java.lang.String roleKey)
Get security properties for either the a backend service or a method within that backend service. |
java.util.Hashtable |
getSecuritySpec(java.lang.String serviceRoleID,
java.lang.String methodName)
Get security properties for either the a backend service or a method within that backend service. |
java.util.Set |
listRoleKeys()
|
void |
setSecuritySpec(java.lang.String serviceRoleID,
java.lang.String methodName,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Set the security properties at the backend service or for a method of that backend service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackendSecuritySpec()
| Method Detail |
|---|
public void setSecuritySpec(java.lang.String serviceRoleID,
java.lang.String methodName,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
throws GeneralException
serviceRoleID - - the role identifier for a service.
Valid values for this parameter are:
- a bmech 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 java.util.Hashtable getDefaultSecuritySpec()
public java.util.Hashtable getSecuritySpec(java.lang.String serviceRoleID,
java.lang.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 bmech PID (e.g., "bmech:9") as the identifier for a backend servicemethodName - - a method name that is specified within a bmech service.
If values is null, then this method will return the security properties
defined for the backend service specified by the serviceRoleID parameter.
public java.util.Hashtable getSecuritySpec(java.lang.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)
- "bmech:9" (the role key for a backend service)
- "bmech:9/getThumb" (the role key for a method within a backend service)
public java.util.Set listRoleKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||