Package org.opensaml.xmlsec.keyinfo.impl
Class BasicKeyInfoGeneratorTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorTest
-
public class BasicKeyInfoGeneratorTest extends org.opensaml.core.xml.XMLObjectBaseTestCaseTests the factory and impl for BasicKeyInfoGenerator.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.security.credential.BasicCredentialcredentialprivate StringentityIDprivate org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactoryfactoryprivate org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorgeneratorprivate StringkeyNameBarprivate StringkeyNameFooprivate PublicKeypubKeyprivate StringrsaBase64
-
Constructor Summary
Constructors Constructor Description BasicKeyInfoGeneratorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestEmitEntityIDAsKeyName()Test emit entity ID as key name.voidtestEmitKeynames()Test emit credential key names.voidtestEmitPublicKey()Test emit public key.voidtestNoOptions()Test no options - should produce null KeyInfo.voidtestProperOptionsCloning()Test that the options passed to the generator are really cloned.-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
-
-
-
Field Detail
-
credential
private org.opensaml.security.credential.BasicCredential credential
-
factory
private org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory factory
-
generator
private org.opensaml.xmlsec.keyinfo.KeyInfoGenerator generator
-
keyNameFoo
private String keyNameFoo
-
keyNameBar
private String keyNameBar
-
entityID
private String entityID
-
pubKey
private PublicKey pubKey
-
rsaBase64
private final String rsaBase64
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception
- Throws:
Exception
-
testNoOptions
public void testNoOptions() throws org.opensaml.security.SecurityExceptionTest no options - should produce null KeyInfo.- Throws:
org.opensaml.security.SecurityException- ...
-
testEmitPublicKey
public void testEmitPublicKey() throws org.opensaml.security.SecurityException, KeyExceptionTest emit public key.- Throws:
org.opensaml.security.SecurityException- ...KeyException- ...
-
testEmitKeynames
public void testEmitKeynames() throws org.opensaml.security.SecurityExceptionTest emit credential key names.- Throws:
org.opensaml.security.SecurityException- ...
-
testEmitEntityIDAsKeyName
public void testEmitEntityIDAsKeyName() throws org.opensaml.security.SecurityExceptionTest emit entity ID as key name.- Throws:
org.opensaml.security.SecurityException- ...
-
testProperOptionsCloning
public void testProperOptionsCloning() throws org.opensaml.security.SecurityExceptionTest 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:
org.opensaml.security.SecurityException- ...
-
-