Skip navigation links

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

E12907-01


oracle.irm.engine.content.key
Class KeySetFactory

java.lang.Object
  extended by oracle.irm.engine.content.key.KeySetFactory


public final class KeySetFactory
extends Object

Key Set factory. This class provides methods for creating new instances of KeySet objects.


Method Summary
static KeySet createKeySet(UUID uuid)
          Recreate an existing key set.

 

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

 

Method Detail

createKeySet

public static KeySet createKeySet(UUID uuid)
                           throws UnknownKeySetException
Recreate an existing key set. The cryptography Schema and CreationTime properties will be restored from the appropriate key storage. The key set key material may also be restored and provided in an appropriate form in the Extensions property.

Lazy Loading

A lazy loading algorithm is employed when creating Key Set objects using this method. The Key Set object will load it's state if a property not provided on construction is accessed. This algorithm is thread safe so it is safe to allow multiple threads to access this lazy loaded object. The following properties are provided on construction and can be accessed without lazy loading being triggered:

Accessing any other properties will cause the object's state to be loaded automatically.
Parameters:
uuid - key set UUID.
Returns:
a new Key Set instance.
Throws:
UnknownKeySetException - if the key set with the provided UUID was never generated or has been deleted. When a key set is created, the implementation may immediately check whether the key set exists or delay this until the other properties on the key set are accessed. An assumption should not be made that this constructor will throw this exception if the key set does not exist.

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.