|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.flashaccess.sdk.revocation.RevocationListFactory
public class RevocationListFactory
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 |
---|
public RevocationListFactory(ServerCredential credential, long crlNumber) throws RevocationException
RevocationListFactory
to generate new revocation lists.
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.
RevocationException
- if the factory could not be created.Method Detail |
---|
public static RevocationList loadRevocationList(java.io.InputStream revList) throws RevocationException
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
.
revList
- The revocation list to be parsed.
RevocationException
- if errors are encountered during parsing of the revocation list.public void addRevocationEntries(java.util.Collection revList) throws RevocationException
revList
- Collection<RevocationEntry
> containing revocation entries.
RevocationException
- if an entry is not valid for the current revocation list.public void addRevocationEntry(RevocationEntry revEntry) throws RevocationException
revEntry
- The revocation list entry to be added.
RevocationException
- if the entry is not valid for the current revocation list.public void setNextUpdateDate(java.util.Date updateDate)
updateDate
- The next time this revocation list will be published (milliseconds are not preserved).public RevocationList generateRevocationList() throws RevocationException
RevocationException
- if the next update is scheduled for a past date.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |