| Authentication and Authorization | 295
• Authorize downloads of one or more files or directories from a specific destination:
# astokengen --mode=recv [options] -u user -p path [-p path …] [-v token]
• Authorize downloads of files specified in a file list:
# astokengen --mode=recv [options] -u user --file-list=filename [-v token]
• Authorize downloads of one or more files as source/destination pairs:
# astokengen --mode=recv [options] -u user --file-pair-list=filename [-
v token]
Usage Examples
Description Example
Common upload In a common upload, only the destination is encoded into the token.
# astokengen --user=user --dest=path --mode=send
Source paths and file lists (--path and --file-list) are not allowed and will cause
astokengen to fail.
Paired upload The destination is prepended to the destinations in the paired list file and they are encoded into
the token. The destinations are in the odd numbered lines of the file (1, 3, 5, 7, and so on).
# astokengen --user=user --dest=path --file-pair-list=filename
--mode=send
Source paths and file lists (--path and --file-list) are not allowed and will cause
astokengen to fail.
Common
download
The specified paths are encoded into the token.
# astokengen --user=user --path=filepath1 --path=filepath2 --
mode=recv
# astokengen --user=user --file-list=filename --mode=recv
In this case, --dest and --file-pair-list are illegal.
Paired download The source files from the file pair list are encoded in the token. The sources are in the even
numbered lines of the file (0, 2, 4, 6, 8, etc.).
# astokengen --user=user --file-pair-list=filename --mode=recv
In this case, --dest, --path and --file-list are illegal.