Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-01


oracle.irm.engine.content.sealing
Interface EncryptionOptions


public interface EncryptionOptions

Encryption options for sealing content. The most common use of this class is to alter the size of the encrypted content blocks in the sealed file. Note that most of the important parameters (algorithm, key-size, etc.) are determined by the choice of CryptoSchema associated with the classification.

Creation

Instances of Encryption Options objects can be created using the following factory style method(s).

EncryptionOptions object = createEncryptionOptions(
    publicHeaderPeriod,
    encryptedContentBlockSize);

XML Serialization

Encryption Options instances can be serialized as an XML document. This XML document can also be used to recreate a Encryption Options object. The following XML document shows an example Encryption Options in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<content:EncryptionOptions xmlns:content="http://xmlns.oracle.com/irm/content">
    <publicHeaderPeriod>1</publicHeaderPeriod>
    <encryptedContentBlockSize>16384</encryptedContentBlockSize>
</content:EncryptionOptions>


Method Summary
 int getEncryptedContentBlockSize()
          Encrypted content block size.
 int getPublicHeaderPeriod()
          Public header repeat period.

 

Method Detail

getPublicHeaderPeriod

int getPublicHeaderPeriod()
Public header repeat period. If non-zero, then the public header period defines how often to repeat the public header. After the specified number of encrypted chunks, the public header will be repeated. This feature can be used with content that is provided in stream form so that clients can observe the data stream and start de-crypting once a public header has been encountered.
Returns:
the value of the property.

getEncryptedContentBlockSize

int getEncryptedContentBlockSize()
Encrypted content block size. This is the length (in bytes) of an individual cipher-text block. This value must be a multiple of the cipher block size used to encrypt content. The default value is 16K.
Returns:
the value of the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-01


Copyright © 2010, Oracle. All rights reserved.