| 168 | | * visualized as being used as follows: |
|---|
| 169 | | * |
|---|
| 170 | | * <code> |
|---|
| 171 | | * Context.addProxyPrivilege("AAA"); |
|---|
| 172 | | * Context.get*Service().methodRequiringAAAPrivilege(); |
|---|
| 173 | | * Context.removeProxyPrivilege("AAA"); |
|---|
| 174 | | * </code> |
|---|
| 175 | | * |
|---|
| 176 | | * @param privilege |
|---|
| 177 | | * to give to users |
|---|
| | 168 | * visualized as being used as follows (try/finally is important): |
|---|
| | 169 | * |
|---|
| | 170 | * <pre> |
|---|
| | 171 | * try { |
|---|
| | 172 | * Context.addProxyPrivilege("AAA"); |
|---|
| | 173 | * Context.get*Service().methodRequiringAAAPrivilege(); |
|---|
| | 174 | * } |
|---|
| | 175 | * finally { |
|---|
| | 176 | * Context.removeProxyPrivilege("AAA"); |
|---|
| | 177 | * } |
|---|
| | 178 | * </pre> |
|---|
| | 179 | * |
|---|
| | 180 | * @param privilege to give to users |
|---|