@BeforeClass public static void bootstrap() throws Exception { Security.addProvider(new BouncyCastleProvider()); DefaultBootstrap.bootstrap(); NamedKeyInfoGeneratorManager keyInfoGeneratorManager = Configuration.getGlobalSecurityConfiguration().getKeyInfoGeneratorManager(); keyInfoGeneratorManager.getManager(SAMLConstants.SAML_METADATA_KEY_INFO_GENERATOR); }
@BeforeClass public static void bootstrap() throws Exception { Security.addProvider(new BouncyCastleProvider()); DefaultBootstrap.bootstrap(); NamedKeyInfoGeneratorManager keyInfoGeneratorManager = Configuration.getGlobalSecurityConfiguration().getKeyInfoGeneratorManager(); keyInfoGeneratorManager.getManager(SAML_METADATA_KEY_INFO_GENERATOR); }
/** * Register a factory within the specified named manager. If that * named manager does not currently exist, it will be created. * * @param name the name of the factory manager * @param factory the factory to register */ public void registerFactory(String name, KeyInfoGeneratorFactory factory) { KeyInfoGeneratorManager manager = getManager(name); manager.registerFactory(factory); }
/** * Register a factory within the specified named manager. If that * named manager does not currently exist, it will be created. * * @param name the name of the factory manager * @param factory the factory to register */ public void registerFactory(String name, KeyInfoGeneratorFactory factory) { KeyInfoGeneratorManager manager = getManager(name); manager.registerFactory(factory); }