|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.core.classification.Classification
public class Classification
Classification type. 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.
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>
Constructor Summary | |
---|---|
Classification() No argument constructor. |
|
Classification(String id, ClassificationSystemRef system, KeySetRef keySet, URI uri, Date classificationTime, Label[] labels, Object cookie) Constructor. |
Method Summary | |
---|---|
Date |
getClassificationTime() Classification Time. |
Object |
getCookie() Classification cookie. |
String |
getId() The classification Id. |
KeySetRef |
getKeySet() The key set used to encrypt/de-crypt content sealed with this classification. |
Label[] |
getLabels() Labels for the classification. |
ClassificationSystemRef |
getSystem() The classification system. |
URI |
getUri() Desktop URI. |
void |
setClassificationTime(Date value) Classification Time. |
void |
setCookie(Object value) Classification cookie. |
void |
setId(String value) The classification Id. |
void |
setKeySet(KeySetRef value) The key set used to encrypt/de-crypt content sealed with this classification. |
void |
setLabels(Label[] value) Labels for the classification. |
void |
setSystem(ClassificationSystemRef value) The classification system. |
void |
setUri(URI value) Desktop URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Classification()
public Classification(String id, ClassificationSystemRef system, KeySetRef keySet, URI uri, Date classificationTime, Label[] labels, Object cookie)
Method Detail |
---|
public String getId()
Uuid
value as a classification Id.public void setId(String value)
Uuid
value as a classification Id.value
- the new value for the property.public ClassificationSystemRef 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.public void setSystem(ClassificationSystemRef value)
ClassificationSystem
defines how the classification is structured and what data it contains. It also defines how licenses and key sets relate to the classification.value
- the new value for the property.public KeySetRef getKeySet()
public void setKeySet(KeySetRef value)
value
- the new value for the property.public URI getUri()
public void setUri(URI value)
value
- the new value for the property.public Date getClassificationTime()
public void setClassificationTime(Date value)
value
- the new value for the property.public Label[] getLabels()
public void setLabels(Label[] value)
value
- the new value for the property.public Object getCookie()
Element
containing the require XML data.ContextCookie
public void setCookie(Object value)
Element
containing the require XML data.value
- the new value for the property.ContextCookie
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |