Package org.opensaml.xmlsec.keyinfo.impl
Class NamedKeyInfoGeneratorManagerTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.NamedKeyInfoGeneratorManagerTest
public class NamedKeyInfoGeneratorManagerTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Test the NamedKeyInfoGeneratorFactory manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicKeyInfoGeneratorFactoryprivate BasicKeyInfoGeneratorFactoryprivate BasicKeyInfoGeneratorFactoryprivate Stringprivate NamedKeyInfoGeneratorManagerprivate Stringprivate Stringprivate X509KeyInfoGeneratorFactoryprivate X509KeyInfoGeneratorFactoryFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()voidTest factory de-registration.voidTest de-registering a factory in the default unnamed manager.voidTest proper functioning of option to use the default manager for unnamed factories.voidTest that obtaining a manager by name works.voidTest access to manager names, and that can not be modified.voidTest lookup of factory from manager based on a credential instance.voidTest factory registration.voidTest registering a factory in the default unnamed manager.voidRemove a manager by name.Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
manager
-
basicFactoryFoo
-
basicFactoryFoo2
-
basicFactoryBar
-
x509FactoryFoo
-
x509FactoryBar
-
nameFoo
-
nameBar
-
certDER
-
-
Constructor Details
-
NamedKeyInfoGeneratorManagerTest
public NamedKeyInfoGeneratorManagerTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testRegister
public void testRegister()Test factory registration. -
testDeregister
public void testDeregister()Test factory de-registration. -
testGetManagerNames
public void testGetManagerNames()Test access to manager names, and that can not be modified. -
testGetManagerByName
public void testGetManagerByName()Test that obtaining a manager by name works. -
testRemoveManagerByName
public void testRemoveManagerByName()Remove a manager by name. -
testRegisterDefaultFactory
public void testRegisterDefaultFactory()Test registering a factory in the default unnamed manager. -
testDeregisterDefaultFactory
public void testDeregisterDefaultFactory()Test de-registering a factory in the default unnamed manager. -
testLookupFactory
Test lookup of factory from manager based on a credential instance.- Throws:
IOException- ...
-
testFallThroughToDefaultManager
Test proper functioning of option to use the default manager for unnamed factories.- Throws:
IOException- ...
-