Class BasicKeyInfoGeneratorTest


  • public class BasicKeyInfoGeneratorTest
    extends org.opensaml.core.xml.XMLObjectBaseTestCase
    Tests the factory and impl for BasicKeyInfoGenerator.
    • 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
    • Constructor Detail

      • BasicKeyInfoGeneratorTest

        public BasicKeyInfoGeneratorTest()
    • Method Detail

      • testNoOptions

        public void testNoOptions()
                           throws org.opensaml.security.SecurityException
        Test no options - should produce null KeyInfo.
        Throws:
        org.opensaml.security.SecurityException - ...
      • testEmitPublicKey

        public void testEmitPublicKey()
                               throws org.opensaml.security.SecurityException,
                                      KeyException
        Test emit public key.
        Throws:
        org.opensaml.security.SecurityException - ...
        KeyException - ...
      • testEmitKeynames

        public void testEmitKeynames()
                              throws org.opensaml.security.SecurityException
        Test emit credential key names.
        Throws:
        org.opensaml.security.SecurityException - ...
      • testEmitEntityIDAsKeyName

        public void testEmitEntityIDAsKeyName()
                                       throws org.opensaml.security.SecurityException
        Test emit entity ID as key name.
        Throws:
        org.opensaml.security.SecurityException - ...
      • testProperOptionsCloning

        public void testProperOptionsCloning()
                                      throws org.opensaml.security.SecurityException
        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:
        org.opensaml.security.SecurityException - ...