public class StaticKeyInfoGeneratorTest extends XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private String |
expectedKeyAlgorithm |
private String |
expectedKeyName1 |
private String |
expectedKeyName2 |
private PublicKey |
expectedKeyValue |
private org.opensaml.xmlsec.keyinfo.impl.StaticKeyInfoGenerator |
generator |
private org.opensaml.xmlsec.signature.KeyInfo |
origKeyInfo |
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory| Constructor and Description |
|---|
StaticKeyInfoGeneratorTest()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
checkKeyInfo(org.opensaml.xmlsec.signature.KeyInfo keyInfo)
Check the correctness of the generated KeyInfo.
|
protected void |
setUp() |
void |
testSimple()
Simple test, should return the same instance every time.
|
void |
testWithCloningNoDOMCache()
Test with cloning, original KeyInfo has no cached DOM.
|
void |
testWithCloningWithDOMCache()
Test with cloning, original KeyInfo has a cached DOM.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementinitOpenSAMLprivate org.opensaml.xmlsec.keyinfo.impl.StaticKeyInfoGenerator generator
private org.opensaml.xmlsec.signature.KeyInfo origKeyInfo
private String expectedKeyName1
private String expectedKeyName2
private String expectedKeyAlgorithm
private PublicKey expectedKeyValue
public void testSimple()
throws SecurityException,
KeyException
SecurityExceptionKeyExceptionpublic void testWithCloningNoDOMCache()
throws SecurityException,
KeyException
SecurityExceptionKeyExceptionpublic void testWithCloningWithDOMCache()
throws SecurityException,
KeyException,
org.opensaml.core.xml.io.MarshallingException
private void checkKeyInfo(org.opensaml.xmlsec.signature.KeyInfo keyInfo)
throws KeyException
keyInfo - the KeyInfo to checkKeyException - if there is an error extracting the Java key from the KeyInfoCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.