public class BasicKeyInfoGeneratorTest extends 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 |
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory| 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, unmarshallElement, unmarshallElementinitOpenSAMLprivate 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 SecurityException
SecurityExceptionpublic void testEmitPublicKey()
throws SecurityException,
KeyException
SecurityExceptionKeyExceptionpublic void testEmitKeynames()
throws SecurityException
SecurityExceptionpublic void testEmitEntityIDAsKeyName()
throws SecurityException
SecurityExceptionpublic void testProperOptionsCloning()
throws SecurityException
SecurityExceptionCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.