com.adobe.flashaccess.sdk.revocation
Class RevocationList

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

public class RevocationList
extends java.lang.Object

This class contains a read-only list of certificates that have been revoked. A RevocationList object can only be created by a RevocationListFactory, as this class contains no public constructors.

To update an existing revocation list, use a RevocationListFactory to digest the old list and generate a new one.


Method Summary
 byte[] getBytes()
          Serializes and signs the revocation list contents.
 long getCrlNumber()
          Retrieves the CRL number.
 java.lang.String getIssuer()
          Retrieves the name of the entity which signed the revocation list.
 java.util.Date getNextUpdateDate()
          Retrieves the date of the next revocation list update.
 java.util.Collection getRevocationEntries()
          Retrieves a collection of all revocation entries this list represents.
 RevocationEntry getRevocationEntry(IssuerAndSerialNumber certIdentifier)
          Retrieves the revocation entry associated with the given serial number, if it exists in the revocation list.
 java.util.Date getThisUpdateDate()
          Retrieves the date on which this revocation list was created.
 boolean isRevoked(IssuerAndSerialNumber certIdentifier)
          Determines whether the given certificate is revoked by this list and the revocation date is before the current date.
 void verifySignature(java.security.cert.X509Certificate issuerCert)
          Verifies whether the revocation list was signed by the specified license server certificate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isRevoked

public boolean isRevoked(IssuerAndSerialNumber certIdentifier)
Determines whether the given certificate is revoked by this list and the revocation date is before the current date.

Parameters:
certIdentifier - The certificate to check revocation.
Returns:
true if the certificate is found, false otherwise.
Throws:
ExpiredRevocationListException - if the Revocation List has expired

getRevocationEntry

public RevocationEntry getRevocationEntry(IssuerAndSerialNumber certIdentifier)
Retrieves the revocation entry associated with the given serial number, if it exists in the revocation list.

Parameters:
certIdentifier - The certificate to check revocation.
Returns:
The revocation entry associated with the given serial number, if it exists in the revocation list. If the serial number is not found, null is returned.
Throws:
ExpiredRevocationListException - if the Revocation List has expired

getRevocationEntries

public java.util.Collection getRevocationEntries()
Retrieves a collection of all revocation entries this list represents.

Returns:
Collection<RevocationEntry> containing all revocation entries this list represents.
Throws:
ExpiredRevocationListException - if the Revocation List has expired

getThisUpdateDate

public java.util.Date getThisUpdateDate()
Retrieves the date on which this revocation list was created.

Returns:
The date and time this revocation list was created by the issuer.

getNextUpdateDate

public java.util.Date getNextUpdateDate()
Retrieves the date of the next revocation list update. This revocation list is considered invalid after this date.

Returns:
The date by which the next update will be issued.

getIssuer

public java.lang.String getIssuer()
Retrieves the name of the entity which signed the revocation list.

Returns:
The signer's name.

getCrlNumber

public long getCrlNumber()
Retrieves the CRL number. CRLs must be assigned monotonically increasing sequence numbers.

Returns:
The CRL number.

verifySignature

public void verifySignature(java.security.cert.X509Certificate issuerCert)
                     throws RevocationException
Verifies whether the revocation list was signed by the specified license server certificate.

Parameters:
issuerCert - The license server certificate of a valid Revocation List issuer.
Throws:
RevocationException - if the signature is not valid.

getBytes

public byte[] getBytes()
                throws RevocationException
Serializes and signs the revocation list contents.

Returns:
A serialized revocation list.
Throws:
RevocationException - if the serialized revocation list could not be generated.


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