com.adobe.flashaccess.sdk.revocation
Class RevocationListFactory

java.lang.Object
  extended by com.adobe.flashaccess.sdk.revocation.RevocationListFactory

public class RevocationListFactory
extends java.lang.Object

This class is used to generate signed certificate revocation lists and load existing revocation lists.


Constructor Summary
RevocationListFactory(ServerCredential credential, long crlNumber)
          Create a RevocationListFactory to generate new revocation lists.
 
Method Summary
 void addRevocationEntries(java.util.Collection revList)
          Adds entries to the new revocation list.
 void addRevocationEntry(RevocationEntry revEntry)
          Adds an entry to the new revocation list.
 RevocationList generateRevocationList()
          Generates the revocation list.
static RevocationList loadRevocationList(java.io.InputStream revList)
          Parses an existing revocation list.
 void setNextUpdateDate(java.util.Date updateDate)
          Specifies the next time this revocation list will be published (optional).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevocationListFactory

public RevocationListFactory(ServerCredential credential,
                             long crlNumber)
                      throws RevocationException
Create a RevocationListFactory to generate new revocation lists.

Parameters:
credential - The license server credential to use to sign the revocation list.
crlNumber - The CRL number, which must be a monotonically increasing sequence number identifying the CRL.
Throws:
RevocationException - if the factory could not be created.
Method Detail

loadRevocationList

public static RevocationList loadRevocationList(java.io.InputStream revList)
                                         throws RevocationException
Parses an existing revocation list. Call RevocationList.verifySignature(X509Certificate) to check the signature before providing the revocation list to any APIs. The expiration date of the Revocation List should also be checked before using. Attempts to use an expired Revocation List will result in an ExpiredRevocationListException.

Parameters:
revList - The revocation list to be parsed.
Returns:
The parsed revocation list.
Throws:
RevocationException - if errors are encountered during parsing of the revocation list.

addRevocationEntries

public void addRevocationEntries(java.util.Collection revList)
                          throws RevocationException
Adds entries to the new revocation list.

Parameters:
revList - Collection<RevocationEntry> containing revocation entries.
Throws:
RevocationException - if an entry is not valid for the current revocation list.

addRevocationEntry

public void addRevocationEntry(RevocationEntry revEntry)
                        throws RevocationException
Adds an entry to the new revocation list.

Parameters:
revEntry - The revocation list entry to be added.
Throws:
RevocationException - if the entry is not valid for the current revocation list.

setNextUpdateDate

public void setNextUpdateDate(java.util.Date updateDate)
Specifies the next time this revocation list will be published (optional). The revocation list is not valid after this date. The expiration date cannot be before the revocation list's creation date.

Parameters:
updateDate - The next time this revocation list will be published (milliseconds are not preserved).

generateRevocationList

public RevocationList generateRevocationList()
                                      throws RevocationException
Generates the revocation list.

Returns:
The revocation list.
Throws:
RevocationException - if the next update is scheduled for a past date.


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