Package org.opensaml.xmlsec.keyinfo.impl
Class NamedKeyInfoGeneratorManagerTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.NamedKeyInfoGeneratorManagerTest
-
public class NamedKeyInfoGeneratorManagerTest extends XMLObjectBaseTestCase
Test the NamedKeyInfoGeneratorFactory manager.
-
-
Field Summary
Fields Modifier and Type Field Description private BasicKeyInfoGeneratorFactorybasicFactoryBarprivate BasicKeyInfoGeneratorFactorybasicFactoryFooprivate BasicKeyInfoGeneratorFactorybasicFactoryFoo2private StringcertDERprivate NamedKeyInfoGeneratorManagermanagerprivate StringnameBarprivate StringnameFooprivate X509KeyInfoGeneratorFactoryx509FactoryBarprivate X509KeyInfoGeneratorFactoryx509FactoryFoo-
Fields inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description NamedKeyInfoGeneratorManagerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestDeregister()Test factory de-registration.voidtestDeregisterDefaultFactory()Test de-registering a factory in the default unnamed manager.voidtestFallThroughToDefaultManager()Test proper functioning of option to use the default manager for unnamed factories.voidtestGetManagerByName()Test that obtaining a manager by name works.voidtestGetManagerNames()Test access to manager names, and that can not be modified.voidtestLookupFactory()Test lookup of factory from manager based on a credential instance.voidtestRegister()Test factory registration.voidtestRegisterDefaultFactory()Test registering a factory in the default unnamed manager.voidtestRemoveManagerByName()Remove a manager by name.-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
manager
private NamedKeyInfoGeneratorManager manager
-
basicFactoryFoo
private BasicKeyInfoGeneratorFactory basicFactoryFoo
-
basicFactoryFoo2
private BasicKeyInfoGeneratorFactory basicFactoryFoo2
-
basicFactoryBar
private BasicKeyInfoGeneratorFactory basicFactoryBar
-
x509FactoryFoo
private X509KeyInfoGeneratorFactory x509FactoryFoo
-
x509FactoryBar
private X509KeyInfoGeneratorFactory x509FactoryBar
-
nameFoo
private String nameFoo
-
nameBar
private String nameBar
-
certDER
private String certDER
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception
- 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
public void testLookupFactory() throws IOExceptionTest lookup of factory from manager based on a credential instance.- Throws:
IOException- ...
-
testFallThroughToDefaultManager
public void testFallThroughToDefaultManager() throws IOExceptionTest proper functioning of option to use the default manager for unnamed factories.- Throws:
IOException- ...
-
-