Package org.opensaml.xmlsec.keyinfo.impl
Class BasicKeyInfoGeneratorTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorTest
public class BasicKeyInfoGeneratorTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Tests the factory and impl for BasicKeyInfoGenerator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicCredentialprivate Stringprivate BasicKeyInfoGeneratorFactoryprivate KeyInfoGeneratorprivate Stringprivate Stringprivate PublicKeyprivate final StringFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[][]protected voidsetUp()voidTest emit entity ID as key name.voidTest emit credential key names.voidTest emit public key.voidtestKeyInfoElmementType(Class<? extends KeyInfo> type) Test emit of sub-type of KeyInfovoidTest no options - should produce null KeyInfo.voidTest that the options passed to the generator are really cloned.Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
credential
-
factory
-
generator
-
keyNameFoo
-
keyNameBar
-
entityID
-
pubKey
-
rsaBase64
- See Also:
-
-
Constructor Details
-
BasicKeyInfoGeneratorTest
public BasicKeyInfoGeneratorTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testNoOptions
Test no options - should produce null KeyInfo.- Throws:
SecurityException- ...
-
testEmitPublicKey
Test emit public key.- Throws:
SecurityException- ...KeyException- ...
-
testEmitKeynames
Test emit credential key names.- Throws:
SecurityException- ...
-
testEmitEntityIDAsKeyName
Test emit entity ID as key name.- Throws:
SecurityException- ...
-
testProperOptionsCloning
Test that the options passed to the generator are really cloned. After newInstance() is called, changes to the factory options should not be reflected in the generator.- Throws:
SecurityException- ...
-
keyInfoTypes
-
testKeyInfoElmementType
public void testKeyInfoElmementType(Class<? extends KeyInfo> type) throws SecurityException, KeyException Test emit of sub-type of KeyInfo- Throws:
SecurityException- ...KeyException- ...
-