Download Print this page

Developing An Authorization Plug-In - Adobe 65024872 - InDesign CS4 - Mac Developer's Manual

Developer's guide
Hide thumbs Also See for 65024872 - InDesign CS4 - Mac:

Advertisement

Writing the code in an Access plug-in
You can either modify the code in the sample Access plug-in file provided by Adobe, or you can write your own plug-
in.
A client connection request triggers the
examines connection requests, modifies client properties, and accepts, rejects, or redirects the requests in the
callback method.
onAccess()
Call
to query the following client properties:
getValue()
Call
to modify the following client properties:
setValue()
call
to modify the
setValue()
,
audioSampleAccess
videoSampleAccess
cation properties.
Call
to query the following server statistics:
getStats()
After you've queried the properties above and written your connection logic, call
to allow a client to connect to an application on the server or not.
redirect()
Configuring folder permissions on the server
The
section of the Application.xml configuration file (located in each virtual host directory and possibly in
Access
application directories) lets you configure folder-level permissions for the Access plug-in. If the
element is set to
, you cannot use the
true
individual files, you can only set permissions at the folder level. The default value is
sions for individual files, as in the following:
<!-- Controls libconnect.dll access configurations -->
<Application>
...
<Client>
...
<Access>
<FolderAccess>false</FolderAccess>
</Access>
...
...
</Application>

Developing an Authorization plug-in

Authorization plug-in overview
The Authorization plug-in authorizes client access to server events and fields associated with those events. Use the
Authorization plug-in to do the following:
Authorize connections to the server
Note: The Access plug-in can also authorize connections and is more lightweight. For more information, see
plug-in
overview.
Authorize playing a stream or seeking in a stream
Authorize publishing a stream
callback method in the Access plug-in. Write the code that
onAccess()
,
readAccess
writeAccess
,
audioSampleAccessLock
eTOTAL_CONNECTED
and
readAccess
ADOBE FLASH MEDIA INTERACTIVE SERVER
,
c-referrer
c-user-agent
,
c-referrer
c-user-agent
,
,
readAccessLock
writeAccessLock
, and
videoSampleAccessLock
,
eBYTES_IN
accept()
properties to set permissions for
writeAccess
false
Plug-In Developer Guide
,
,
, and
s-uri
c-ip
c-proto
, and
. You can also
s-uri
,
appli-
, and
.
eBYTES_OUT
,
, or
reject()
FolderAccess
, which lets you set permis-
Access
6
.

Advertisement

loading

This manual is also suitable for:

Flash media interactive server