Skip navigation links

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

E12907-03


oracle.irm.engine.content.key
Class IllegalWrappingKeySizeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.irm.engine.content.key.IllegalWrappingKeySizeException

All Implemented Interfaces:
Serializable

public class IllegalWrappingKeySizeException
extends RuntimeException

Illegal wrapping key size. The wrapping key must be of a sufficient size for the cryptographic algorithm used for wrapping to encrypt the key.

The error message associated with this exception is:

IRM-01081: A wrapping key {1} bits in size is insufficient to wrap a {0} bit key.
See Also:
Serialized Form

Constructor Summary
IllegalWrappingKeySizeException(int keySize, int wrappingKeySize)
          Constructor.
IllegalWrappingKeySizeException(int keySize, int wrappingKeySize, Throwable cause)
          Constructor.

 

Method Summary
 int getKeySize()
          The size in bits of the key.
 int getWrappingKeySize()
          The size in bits of the wrapping key.

 

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

IllegalWrappingKeySizeException

public IllegalWrappingKeySizeException(int keySize,
                                       int wrappingKeySize)
Constructor.
Parameters:
keySize - The size in bits of the key.
wrappingKeySize - The size in bits of the wrapping key.

IllegalWrappingKeySizeException

public IllegalWrappingKeySizeException(int keySize,
                                       int wrappingKeySize,
                                       Throwable cause)
Constructor.
Parameters:
keySize - The size in bits of the key.
wrappingKeySize - The size in bits of the wrapping key.
cause - Cause of the exception.

Method Detail

getKeySize

public final int getKeySize()
The size in bits of the key.
Returns:
the value of the property.

getWrappingKeySize

public final int getWrappingKeySize()
The size in bits of the wrapping key.
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.