Package org.opensaml.xmlsec.keyinfo.impl
Class KeyInfoGeneratorManagerTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.KeyInfoGeneratorManagerTest
public class KeyInfoGeneratorManagerTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Test the KeyInfoGeneratorFactory manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicKeyInfoGeneratorFactoryprivate BasicKeyInfoGeneratorFactoryprivate Stringprivate KeyInfoGeneratorManagerprivate 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 that getFactories() works, and is unmodifiable.voidTest lookup of factory from manager based on a credential instance.voidTest factory registration.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
-
basicFactory
-
basicFactory2
-
x509Factory
-
x509Factory2
-
certDER
-
-
Constructor Details
-
KeyInfoGeneratorManagerTest
public KeyInfoGeneratorManagerTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testRegister
public void testRegister()Test factory registration. -
testDeregister
public void testDeregister()Test factory de-registration. -
testGetFactories
public void testGetFactories()Test that getFactories() works, and is unmodifiable. -
testLookupFactory
public void testLookupFactory() throws NoSuchAlgorithmException, NoSuchProviderException, IOExceptionTest lookup of factory from manager based on a credential instance.- Throws:
NoSuchProviderException- ...NoSuchAlgorithmException- ...IOException- ...
-