|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Classification
Classification. A classification is the set of meta-data sealed into content during the sealing process. This information includes the classification Cookie
which is an opaque blob of data, the Uri
which is used to determine which server to contact for licenses and key sets, and the ClassificationTime
which is used in license algorithms when determining whether content can be accessed. The format of the data in the cookie is defined by the classification System
.
For example, the context classification system provides a ContextCookie
for the classification meta-data. A context cookie associates sealed content with a Context
and an ItemCode
. License rules are then based on matching the context and/or item code.
Instances of Classification objects can be created using the following factory style method(s).
Classification object = createClassification
(
classification,
cookie);
Classification object = createClassification
(
id,
system,
keySet,
uri,
classificationTime,
labels,
cookie);
Collections for Classification
objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing Classification
elements.
Collection
<Classification
> object =createClassifications
();
Consult the Id
property for more information on how this property can relate to Classification
collections.
Classification instances can be serialized as an XML document. This XML document can also be used to recreate a Classification object. The following XML document shows an example Classification in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<core:Classification xmlns:core="http://xmlns.oracle.com/irm/core">
<id>7ec1c191-0531-4876-813e-c554676df09b</id>
<system>
<uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
</system>
<keySet>
<uuid>213f8f65-c5d1-4868-9fff-ad156daa2dd6</uuid>
</keySet>
<uri>http://irm.example.com/irm_desktop</uri>
<classifications:ContextCookie xmlns:classifications="http://xmlns.oracle.com/irm/classifications">
<context>
<uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
</context>
<itemCode>
<value>sample.sdoc</value>
</itemCode>
</classifications:ContextCookie>
<classificationTime>2008-02-01T13:00:00.000+01:00</classificationTime>
<labels>
<locale>en</locale>
<name>Top Secret</name>
</labels>
</core:Classification>
Method Summary | |
---|---|
Date |
getClassificationTime() Classification Time. |
Object |
getCookie() Classification cookie. |
String |
getId() The classification Id. |
KeySet |
getKeySet() The key set used to encrypt/de-crypt content sealed with this classification. |
Collection<Label> |
getLabels() Labels for the classification. |
ClassificationSystem |
getSystem() The classification system. |
URI |
getUri() Desktop URI. |
Method Detail |
---|
String getId()
Uuid
value as a classification Id.
getClassificationById
.ClassificationSystem getSystem()
ClassificationSystem
defines how the classification is structured and what data it contains. It also defines how licenses and key sets relate to the classification.KeySet getKeySet()
URI getUri()
Date getClassificationTime()
Collection<Label> getLabels()
Object getCookie()
Element
containing the require XML data.ContextCookie
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |