com.adobe.flashaccess.sdk.rights
Class AIRApplicationIdentifier

java.lang.Object
  extended by com.adobe.flashaccess.sdk.rights.ApplicationIdentifier
      extended by com.adobe.flashaccess.sdk.rights.AIRApplicationIdentifier
All Implemented Interfaces:
java.lang.Cloneable

public class AIRApplicationIdentifier
extends ApplicationIdentifier

Restricts AIR applications that can consume content. AIR applications are identified by an Adobe AIR publisher identifier, an Adobe AIR application identifier, and a version.

If only a publisher identifier is specified, any application from that publisher is valid. If only a publisher and application identifier are specified, any version of that application is valid. Publisher and application identifier are required if minimum or maximum version is specified. If a minimum version is specified, applications with a version number greater than or equal to the specified version are allowed. If a maximum version is specified, applications with a version number less than or equal to the specified version are allowed.


Constructor Summary
AIRApplicationIdentifier()
          Creates an AIRApplicationIdentifier with no restrictions.
AIRApplicationIdentifier(java.lang.String publisherId)
          Limits access to the specified publisher identifier, but permits any application identifier and version.
AIRApplicationIdentifier(java.lang.String publisherId, java.lang.String applicationId)
          Limits access to the specified publisher identifier and application identifier, but permits any version.
AIRApplicationIdentifier(java.lang.String publisherId, java.lang.String applicationId, java.lang.String minVersion, java.lang.String maxVersion)
          Limits access to the specified publisher identifier, application identifier, and version range.
 
Method Summary
 java.lang.String getApplicationID()
          Retrieves The Adobe AIR application identifier for applications allowed to access the content.
 java.lang.String getMaximumVersion()
          Retrieves the maximum application version for applications allowed to access the content (optional).
 java.lang.String getMinimumVersion()
          Retrieves the minimum application version for applications allowed to access the content (optional).
 java.lang.String getPublisherID()
          Retrieves the Adobe AIR publisher identifier for applications allowed to access the content.
 void setApplicationID(java.lang.String applicationID)
          Sets The Adobe AIR application identifier for applications allowed to access the content.
 void setMaximumVersion(java.lang.String maxVersion)
          Sets the maximum application version for applications allowed to access the content.
 void setMinimumVersion(java.lang.String minVersion)
          Sets the minimum accepted version for applications allowed to access the content.
 void setPublisherID(java.lang.String publisherId)
          Retrieves The Adobe AIR publisher identifier for applications allowed to access the content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AIRApplicationIdentifier

public AIRApplicationIdentifier()
Creates an AIRApplicationIdentifier with no restrictions. At a minimum, the publisher identifier must be set before this object is used.


AIRApplicationIdentifier

public AIRApplicationIdentifier(java.lang.String publisherId)
Limits access to the specified publisher identifier, but permits any application identifier and version.

Parameters:
publisherId - The Adobe AIR publisher identifier.

AIRApplicationIdentifier

public AIRApplicationIdentifier(java.lang.String publisherId,
                                java.lang.String applicationId)
Limits access to the specified publisher identifier and application identifier, but permits any version.

Parameters:
publisherId - The Adobe AIR publisher identifier.
applicationId - The Adobe AIR application identifier.

AIRApplicationIdentifier

public AIRApplicationIdentifier(java.lang.String publisherId,
                                java.lang.String applicationId,
                                java.lang.String minVersion,
                                java.lang.String maxVersion)
Limits access to the specified publisher identifier, application identifier, and version range.

Parameters:
publisherId - The Adobe AIR publisher identifier.
applicationId - The Adobe AIR application identifier.
minVersion - The minimum application version (inclusive).
maxVersion - The maximum application version (inclusive).
Method Detail

getPublisherID

public java.lang.String getPublisherID()
Retrieves the Adobe AIR publisher identifier for applications allowed to access the content.

Returns:
The Adobe AIR publisher identifier.

setPublisherID

public void setPublisherID(java.lang.String publisherId)
Retrieves The Adobe AIR publisher identifier for applications allowed to access the content.

Parameters:
publisherId - The Adobe AIR publisher identifier.

getApplicationID

public java.lang.String getApplicationID()
Retrieves The Adobe AIR application identifier for applications allowed to access the content.

Returns:
The Adobe AIR application identifier, or null if there is no application identifier restriction.

setApplicationID

public void setApplicationID(java.lang.String applicationID)
Sets The Adobe AIR application identifier for applications allowed to access the content.

Parameters:
applicationID - The Adobe AIR application identifier, or null if there is no application identifier restriction.

getMinimumVersion

public java.lang.String getMinimumVersion()
Retrieves the minimum application version for applications allowed to access the content (optional). Versions are compared using an integer comparison of each dot-separated (.) segment (for example, 1.1 < 1.2 < 1.10 < 1.10.5). If the version is not set, there is no lower version limit.

Returns:
The minimum application version for applications allowed to access the content.

setMinimumVersion

public void setMinimumVersion(java.lang.String minVersion)
Sets the minimum accepted version for applications allowed to access the content. It must only contain numerals and decimal points, such as the sequence "1.0023.1". If the maximum and minimum versions are equal, only that exact version number is allowed. Version numbers may not be negative.

Parameters:
minVersion - The minimum accepted version for applications allowed to access the content.

getMaximumVersion

public java.lang.String getMaximumVersion()
Retrieves the maximum application version for applications allowed to access the content (optional). Versions are compared using an integer comparision of each dot-separated (.) segment (for example, 1.1 < 1.2 < 1.10 < 1.10.5). If the version is not set, there is no upper version limit.

Returns:
The maximum application version for applications allowed to access the content.

setMaximumVersion

public void setMaximumVersion(java.lang.String maxVersion)
Sets the maximum application version for applications allowed to access the content. It must only contain numerals and decimal points, such as the sequence "1.0023.1". If the maximum and minimum versions are equal, only that exact version number is allowed. Version numbers may not be negative.

Parameters:
maxVersion - The maximum application version for applications allowed to access the content.


[an error occurred while processing this directive] [an error occurred while processing this directive]