This method of the IPermission Interface creates and returns a new permission object that is a combination of the current permission object and the specified permission object. The new object allows access to exactly those resources allowed by either one of the permission objects that it was constructed from.
IPermission combine(IPermission other) ;
Returns the resulting permission object.
other | The permission object that indicates additional resources to allow access to. |
IllegalArgumentException if the specified permission object is not of the same type as the permission object it is being combined with.