Package org.opensaml.xmlsec.keyinfo.impl
Class KeyInfoGeneratorManagerTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.KeyInfoGeneratorManagerTest
-
public class KeyInfoGeneratorManagerTest extends org.opensaml.core.xml.XMLObjectBaseTestCaseTest the KeyInfoGeneratorFactory manager.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactorybasicFactoryprivate org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactorybasicFactory2private StringcertDERprivate org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorManagermanagerprivate org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactoryx509Factoryprivate org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactoryx509Factory2
-
Constructor Summary
Constructors Constructor Description KeyInfoGeneratorManagerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestDeregister()Test factory de-registration.voidtestGetFactories()Test that getFactories() works, and is unmodifiable.voidtestLookupFactory()Test lookup of factory from manager based on a credential instance.voidtestRegister()Test factory registration.-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
-
-
-
Field Detail
-
manager
private org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorManager manager
-
basicFactory
private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory basicFactory
-
basicFactory2
private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory basicFactory2
-
x509Factory
private org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactory x509Factory
-
x509Factory2
private org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactory x509Factory2
-
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.
-
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- ...
-
-