Overview

Token Generator Library

The Token Generator Library allows you to generate authorization tokens that can be used in FASP URLs. Unlike the astokengen binary this library does not read the contents of the aspera.conf file.  Therefore, all of the information used in token generation is supplied through the API.  Java and .Net libraries are available for most versions to simplify the use of the token generation in your application. These libraries expose an interface with clear and simple functions to generate tokens using the astokengen.  They are fully configurable and their output is the generated token. The Token Generation Library requires the appropriate version of the Redistributable Package to be installed.

To get started read over the Getting Started Section which includes specific information for the different versions available.  You can download your preferred version using the Download Library link on the left.

 


Getting Started

Token Generator Library Version 3.1

The Java and .NET Token Generator Libraries simplify generating tokens in custom applications.  This version adds many new features while maintaining backwards compatibility.  You need Version 3.1 of the Redistributable Package.  New methods includes version 3.1 include.

  • addTransferPath - multiple paths can now be passed and generated at the same time
  • setEncryptionKey - specify the encryption key to eliminate the need for aspera.conf
  • setEncryptionType - specify encryption type
  • setLifeSeconds - specify expiration time for your tokens
  • setLoggingDirectory - configure library to capture more detailed debugging information (when logging is enabled)
  • getASToken - returns an ASToken object with detailed information
  • getTokenDetails - returns an ASToken object with information about the given token
  • isTokenValid - check to see if a token is valid

 To see the full list of features and view advanced usage please review the API Documentation.  To download this version please see the Download section.

Redistributable Package

Astokengen is required, please ensure that you have astokengen installed.  If you do not have it installed you can download it from the Redistributable Package section, you must use Version 3.1 or higher.  If your applications fails to find astokengen you can supply the path to astokengen with the setAsTokenGenPath method in Java or the asTokenGenPath in .NET.

Java Example

 

.NET Example

Note: Make sure you rename the aspera.tokengen.3.1.0.65809.dll that you download to astokengenlib.dll when including it to their .NET project/solution.

 

 


Token Generator Library Version 2.8

The Java and .NET Token Generator Libraries simplify generating tokens in custom applications. These libraries expose an interface with clear and simple functions to generate tokens using the astokengen. They are fully configurable and their output is the generated token. This version has been replaced with Version 3.1, this version was previously known as the "New Token Generation Library".

Redistributable Package

Astokengen is required, please ensure that you have astokengen installed.  If you do not have it installed you can download it from the Redistributable Package section. If your applications fails to find astokengen you can supply the path to astokengen with the setAsTokenGenPath method in Java or the asTokenGenPath in .NET.

Java Example

 

.NET Example

 

 


Documentation

API Documentation

To begin, please select the language you plan to use.

 


Downloads

Download Library

To download the Token Generator Library, please choose a version, then choose a language.

Version 3.1

Version 2.8

Version 2.7

 


Video player

Video

×