|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.keyinfo.NamedKeyInfoGeneratorManager
public class NamedKeyInfoGeneratorManager
A manager for named sets of KeyInfoGeneratorFactory
instances. Each name key serves as an index to an
instance of KeyInfoGeneratorManager
.
Constructor Summary | |
---|---|
NamedKeyInfoGeneratorManager()
Constructor. |
Method Summary | |
---|---|
void |
deregisterDefaultFactory(KeyInfoGeneratorFactory factory)
De-register a factory with the default (unnamed) manager. |
void |
deregisterFactory(String name,
KeyInfoGeneratorFactory factory)
De-register a factory within the specified named manager. |
KeyInfoGeneratorManager |
getDefaultManager()
Get the default (unnamed) factory manager. |
KeyInfoGeneratorFactory |
getFactory(String name,
Credential credential)
Lookup and return the named generator factory for the type of the credential specified. |
KeyInfoGeneratorManager |
getManager(String name)
Get the named factory manager. |
Set<String> |
getManagerNames()
Get the (unmodifiable) set of names of factory managers currently available. |
void |
registerDefaultFactory(KeyInfoGeneratorFactory factory)
Register a factory with the default (unnamed) manager. |
void |
registerFactory(String name,
KeyInfoGeneratorFactory factory)
Register a factory within the specified named manager. |
void |
removeManager(String name)
Remove the named factory manager, and all its managed factories. |
void |
setUseDefaultManager(boolean newValue)
Set the option as to whether the default (unnamed) manager will be used to lookup factories for credentials if there is no appropriate named factory for the credential type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedKeyInfoGeneratorManager()
Method Detail |
---|
public void setUseDefaultManager(boolean newValue)
newValue
- the new option valuepublic Set<String> getManagerNames()
public KeyInfoGeneratorManager getManager(String name)
name
- the name of the manager to obtain
public void removeManager(String name)
name
- the name of the manager to removepublic void registerFactory(String name, KeyInfoGeneratorFactory factory)
name
- the name of the factory managerfactory
- the factory to registerpublic void deregisterFactory(String name, KeyInfoGeneratorFactory factory)
name
- the name of the factory managerfactory
- the factory to de-registerpublic void registerDefaultFactory(KeyInfoGeneratorFactory factory)
factory
- the factory to registerpublic void deregisterDefaultFactory(KeyInfoGeneratorFactory factory)
factory
- the factory to de-registerpublic KeyInfoGeneratorManager getDefaultManager()
public KeyInfoGeneratorFactory getFactory(String name, Credential credential)
name
- the name of the factory mangercredential
- the credential to evaluate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |