/** * Populate KeyInfoCredentialResolver-related parameters. * * @param config the security configuration to populate */ protected static void populateKeyInfoCredentialResolverParams(BasicSecurityConfiguration config) { // Basic resolver for inline info ArrayList<KeyInfoProvider> providers = new ArrayList<KeyInfoProvider>(); providers.add( new RSAKeyValueProvider() ); providers.add( new DSAKeyValueProvider() ); providers.add( new InlineX509DataProvider() ); KeyInfoCredentialResolver resolver = new BasicProviderKeyInfoCredentialResolver(providers); config.setDefaultKeyInfoCredentialResolver(resolver); }
/** * Populate KeyInfoCredentialResolver-related parameters. * * @param config the security configuration to populate */ protected static void populateKeyInfoCredentialResolverParams(BasicSecurityConfiguration config) { // Basic resolver for inline info ArrayList<KeyInfoProvider> providers = new ArrayList<KeyInfoProvider>(); providers.add( new RSAKeyValueProvider() ); providers.add( new DSAKeyValueProvider() ); providers.add( new InlineX509DataProvider() ); KeyInfoCredentialResolver resolver = new BasicProviderKeyInfoCredentialResolver(providers); config.setDefaultKeyInfoCredentialResolver(resolver); }