public class BasicKeyInfoGeneratorTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.security.credential.BasicCredential |
credential |
private String |
entityID |
private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory |
factory |
private org.opensaml.xmlsec.keyinfo.KeyInfoGenerator |
generator |
private String |
keyNameBar |
private String |
keyNameFoo |
private PublicKey |
pubKey |
private String |
rsaBase64 |
| Constructor and Description |
|---|
BasicKeyInfoGeneratorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testEmitEntityIDAsKeyName()
Test emit entity ID as key name.
|
void |
testEmitKeynames()
Test emit credential key names.
|
void |
testEmitPublicKey()
Test emit public key.
|
void |
testNoOptions()
Test no options - should produce null KeyInfo.
|
void |
testProperOptionsCloning()
Test that the options passed to the generator are really cloned.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate org.opensaml.security.credential.BasicCredential credential
private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory factory
private org.opensaml.xmlsec.keyinfo.KeyInfoGenerator generator
private String keyNameFoo
private String keyNameBar
private String entityID
private PublicKey pubKey
private final String rsaBase64
public void testNoOptions()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testEmitPublicKey()
throws org.opensaml.security.SecurityException,
KeyException
org.opensaml.security.SecurityExceptionKeyExceptionpublic void testEmitKeynames()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testEmitEntityIDAsKeyName()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testProperOptionsCloning()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionCopyright © 1999–2015. All rights reserved.