public class StaticKeyInfoGeneratorTest
extends org.opensaml.core.xml.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 |
| 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, unmarshallElementprivate 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 org.opensaml.security.SecurityException,
KeyException
org.opensaml.security.SecurityExceptionKeyExceptionpublic void testWithCloningNoDOMCache()
throws org.opensaml.security.SecurityException,
KeyException
org.opensaml.security.SecurityExceptionKeyExceptionpublic void testWithCloningWithDOMCache()
throws org.opensaml.security.SecurityException,
KeyException,
org.opensaml.core.xml.io.MarshallingException
org.opensaml.security.SecurityExceptionKeyExceptionorg.opensaml.core.xml.io.MarshallingExceptionprivate 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–2015. All rights reserved.