|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RightsManagementEncryptionService
RightsManagementEncryptionService interface provides methods to protect, unprotect, and inspect documents. Before using the interface, copy all jar files from AEM_SDK_Location\client-libs\thirdparty and following jar files from AEM_SDK_Location\client-libs\common folder to the library folder of the project: adobe-usermanager-client.jar, adobe-rightsmanagement- client.jar, adobe-livecycle-client.jar, aglj40.jar, pdfcore.jar, pdfencryption.jar, pdfservices.jar, pdfservices_extraction.jar, rideau.jar, xmpcore.jar, adobe-xfa-3.6.0.jar
Method Summary | |
---|---|
InspectDocResult |
inspectDocument(java.io.InputStream inDoc)
Inspects the document on the client side and sets values of ServerUrl and isProtected under InspectDocResult Bean works for both pdf and office docs |
InspectDocResult |
inspectPDFDocument(java.io.InputStream inDoc)
Inspects the pdf document on the client side and sets values of ServerUrl and isProtected under InspectDocResult Bean |
java.io.InputStream |
protectDocument(java.io.InputStream inDoc,
PublishLicenseDTO license)
Protects the document on the client side, works for both pdf and office docs |
java.io.InputStream |
protectDocumentWithCoverPage(java.io.InputStream inDoc,
java.io.InputStream coverDocument,
java.lang.String documentName,
PublishLicenseDTO license)
Creates a page 0 document. |
java.io.InputStream |
protectPDFDocument(java.io.InputStream inPDFDoc,
PublishLicenseDTO license)
Protects the pdf document on the client side. |
java.io.InputStream |
unprotectDocument(java.io.InputStream inDoc)
Unprotects the document on the client side, works for both pdf and office docs |
java.io.InputStream |
unprotectPDFDocument(java.io.InputStream inPDFDoc)
Unprotects the pdf document on the client side. |
Method Detail |
---|
java.io.InputStream protectPDFDocument(java.io.InputStream inPDFDoc, PublishLicenseDTO license) throws SDKException
inPDFDoc
- InputStream of document that needs to be protected, closing this stream is caller's responsibilitylicense
- a com.adobe.edc.common.dto.PublishLicenseDTO
that contains license information required for protection
SDKException
java.io.InputStream protectDocumentWithCoverPage(java.io.InputStream inDoc, java.io.InputStream coverDocument, java.lang.String documentName, PublishLicenseDTO license) throws SDKException
inDoc
- InputStream of document. The input document should not be encrypted, the InputStream current pointer will be reset, closing this stream is caller's responsibilitycoverDocument
- InputStream of Cover document. This document should not be encrypted, the InputStream current pointer will be reset, closing this stream is caller's responsibilitydocumentName
- that contains the name of the document. This value can have a maximum length of 255 single-byte characters.license
- a com.adobe.edc.common.dto.PublishLicenseDTO
that contains license information required for protection
SDKException
java.io.InputStream unprotectPDFDocument(java.io.InputStream inPDFDoc) throws SDKException
inPDFDoc
- InputStream of document that needs to be unprotected, closing this stream is caller's responsibility
SDKException
InspectDocResult inspectPDFDocument(java.io.InputStream inDoc) throws SDKException
inDoc
- InputStream of document that needs to be inspected, the InputStream current pointer will be reset, closing this stream is caller's responsibility
SDKException
java.io.InputStream protectDocument(java.io.InputStream inDoc, PublishLicenseDTO license) throws SDKException
inDoc
- InputStream of document that needs to be protected, closing this stream is caller's responsibilitylicense
- a com.adobe.edc.common.dto.PublishLicenseDTO
that contains license information required for protection
SDKException
java.io.InputStream unprotectDocument(java.io.InputStream inDoc) throws SDKException
inDoc
- InputStream of document that needs to be unprotected, closing this stream is caller's responsibility
SDKException
InspectDocResult inspectDocument(java.io.InputStream inDoc) throws SDKException
inDoc
- InputStream of document that needs to be inspected, the InputStream current pointer will be reset, closing this stream is caller's responsibility
SDKException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |