org.opensaml.xml.security.keyinfo
Class KeyInfoGeneratorManager

java.lang.Object
  extended by org.opensaml.xml.security.keyinfo.KeyInfoGeneratorManager

public class KeyInfoGeneratorManager
extends java.lang.Object

A manager for KeyInfoGeneratorFactory instances. Factories are uniquely indexed according to the value returned by KeyInfoGeneratorFactory.getCredentialType().


Constructor Summary
KeyInfoGeneratorManager()
          Constructor.
 
Method Summary
 void deregisterFactory(KeyInfoGeneratorFactory factory)
          De-register a factory within this manager instance.
 java.util.Collection<KeyInfoGeneratorFactory> getFactories()
          Get the (unmodifiable) collection of all factories managed by this manager.
 KeyInfoGeneratorFactory getFactory(Credential credential)
          Get the factory which produces KeyInfoGenerators which can handle the specified credential.
 void registerFactory(KeyInfoGeneratorFactory factory)
          Register a factory within this manager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyInfoGeneratorManager

public KeyInfoGeneratorManager()
Constructor.

Method Detail

registerFactory

public void registerFactory(KeyInfoGeneratorFactory factory)
Register a factory within this manager instance. If a factory already exists for that credential type, it will be replaced.

Parameters:
factory - the factory to register

deregisterFactory

public void deregisterFactory(KeyInfoGeneratorFactory factory)
De-register a factory within this manager instance.

Parameters:
factory - the factory to de-register

getFactories

public java.util.Collection<KeyInfoGeneratorFactory> getFactories()
Get the (unmodifiable) collection of all factories managed by this manager.

Returns:
the collection of managed factories

getFactory

public KeyInfoGeneratorFactory getFactory(Credential credential)
Get the factory which produces KeyInfoGenerators which can handle the specified credential.

Parameters:
credential - the credential for which to locate a factory
Returns:
a KeyInfoGeneratorFactory instance appropriate for the credential


Copyright © 2006-2011 Internet2. All Rights Reserved.