org.idoox.xml.security
Class KeyContentFactory

java.lang.Object
  extended byorg.idoox.xml.security.KeyContentFactory

public class KeyContentFactory
extends java.lang.Object

The factory for KeyContent that creates the instance of the KeyContent and (un)regiter the application defined KeyContent object. There are implemented four types of KeyContent:

See also KeyContent to get further information.

Component:
Security-Providers

Constructor Summary
KeyContentFactory()
           
 
Method Summary
static KeyContent getKeyContent(QName name)
          Creates new KeyContent instance associated with the given name.
static void registerKeyContent(KeyContent keyContent)
          Adds KeyContent object to this factory.
static void unregisterKeyContent(QName name)
          Removes KeyContent instance from this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyContentFactory

public KeyContentFactory()
Method Detail

getKeyContent

public static KeyContent getKeyContent(QName name)
                                throws SignatureException
Creates new KeyContent instance associated with the given name.

Parameters:
name - name of the KeyContent to be created.
Returns:
The KeyContent value
Throws:
SignatureException - thrown when an error occurs.

registerKeyContent

public static void registerKeyContent(KeyContent keyContent)
Adds KeyContent object to this factory.

Parameters:
keyContent - the KeyContent instance

unregisterKeyContent

public static void unregisterKeyContent(QName name)
Removes KeyContent instance from this factory.

Parameters:
name - the KeyContent instance