|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface License
The License
interface provides methods for retrieving information about licenses and the
XML representation of licenses.
License
objects represent licenses that the Rights Management service creates and
stores in the database. Only the Rights Management service can create licenses.
Licenses are implemented as XML documents according to the PDRL schema.
You can use LicenseManager
to modify license properties.
To see this interface used in a code example, see the Revoking a document using the Java API quick start in Programming with Adobe Experience Manager Forms.
Field Summary | |
---|---|
static int |
DOCUMENT_REVISED
Indicates that a document was revoked because the document was revised. |
static int |
DOCUMENT_TERMINATED
Indicates that a document was revoked because the document was terminated. |
static int |
GENERAL_MESSAGE
Indicates a general reason that a document was revoked. |
Method Summary | |
---|---|
java.lang.String |
getAlternateId()
Retrieves the alternate identification of the license. |
java.lang.String |
getDocumentName()
Retrieves the name of the document associated with the license. |
java.lang.String |
getId()
Retrieves the unique identification of the license. |
int |
getInstanceVersion()
Retrieves the version of the license. |
java.util.Date |
getIssueDate()
Retrieves the date when the Rights Management service issued the license. |
java.lang.String |
getIssuingAuthority()
Retrieves the URL of the host server that created the license. |
java.lang.String |
getPolicyId()
Retrieves the identification of the policy that the license is associated with. |
Principal |
getPublisher()
Retrieves the user who secured the document that the license is associated with. |
int |
getRevocationReason()
Retrieves the reason that the license was revoked. |
java.lang.String |
getRevocationUrl()
Retrieves the URL provided for the revoked license. |
java.lang.String |
getSchemaVersion()
Retrieves the version of the PDRL schema for the license. |
boolean |
isRevoked()
Retrieves the revocation state of the license. |
byte[] |
toXml()
Creates an XML representation of the license. |
Field Detail |
---|
static final int DOCUMENT_REVISED
static final int DOCUMENT_TERMINATED
static final int GENERAL_MESSAGE
Method Detail |
---|
java.lang.String getSchemaVersion()
java.lang.String
that holds the version of the PDRL schema.int getInstanceVersion()
java.lang.String
that holds the version of the license.java.lang.String getPolicyId()
java.lang.String
that holds the identification of the policy.Policy
java.lang.String getIssuingAuthority()
java.lang.String
that holds the URL of the server.java.lang.String getId()
java.lang.String
that holds the identification of the license.java.util.Date getIssueDate()
java.util.Date
object that contains the issue date of the license.Principal getPublisher()
Principal
object that represents the person who published the associated document.byte[] toXml() throws PDRLException
PDRLException
java.lang.String getDocumentName()
boolean isRevoked()
true
if the license is revoked, false
if the license is not revoked.int getRevocationReason()
License.DOCUMENT_REVISED
,
License.DOCUMENT_TERMINATED
,
License.GENERAL_MESSAGE
java.lang.String getRevocationUrl()
java.lang.String
that holds the URL provided for the revoked license and
null
if no URL was provided.LicenseManager.revokeLicense(java.lang.String, int, java.net.URL)
java.lang.String getAlternateId()
java.lang.String
that holds the the alternate identification of the license and
null
if no alternate identification is set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |