Skip navigation links

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

E12907-03


oracle.irm.engine.content.sealing
Class IllegalEncryptedContentBlockSizeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.irm.engine.content.sealing.IllegalEncryptedContentBlockSizeException

All Implemented Interfaces:
Serializable

public class IllegalEncryptedContentBlockSizeException
extends RuntimeException

Illegal encrypted content block size. When performing a sealing operation, content encryption options can be supplied that control the size of the encrypted content blocks. The encrypted content block size must be a multiple of the cipher block size. The cipher block size relates to the CryptoSchema involved in the sealing process. This restriction on encrypted content block sizes allows the sealing process to work with block based ciphers as well as streaming ciphers.

The error message associated with this exception is:

IRM-01077: The encrypted content block size must be a direct multiple of the cipher block size. The cipher block size is {0}, but the encrypted content block size has been set as {1}.
See Also:
EncryptionOptions, Serialized Form

Constructor Summary
IllegalEncryptedContentBlockSizeException(int blockSize, int encryptedContentBlockSize)
          Constructor.
IllegalEncryptedContentBlockSizeException(int blockSize, int encryptedContentBlockSize, Throwable cause)
          Constructor.

 

Method Summary
 int getBlockSize()
          Cipher block size.
 int getEncryptedContentBlockSize()
          Encrypted encrypted content block size.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

IllegalEncryptedContentBlockSizeException

public IllegalEncryptedContentBlockSizeException(int blockSize,
                                                 int encryptedContentBlockSize)
Constructor.
Parameters:
blockSize - Cipher block size.
encryptedContentBlockSize - Encrypted encrypted content block size.

IllegalEncryptedContentBlockSizeException

public IllegalEncryptedContentBlockSizeException(int blockSize,
                                                 int encryptedContentBlockSize,
                                                 Throwable cause)
Constructor.
Parameters:
blockSize - Cipher block size.
encryptedContentBlockSize - Encrypted encrypted content block size.
cause - Cause of the exception.

Method Detail

getBlockSize

public final int getBlockSize()
Cipher block size.
Returns:
the value of the property.

getEncryptedContentBlockSize

public final int getEncryptedContentBlockSize()
Encrypted encrypted content block size.
Returns:
the value of the property.

Skip navigation links

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

E12907-03


Copyright © 2011, Oracle. All rights reserved.