public static void configureServer(final AbstractJAXRSFactoryBean serverFactory, final Map<String, Object> securityProps) { Map<String, Object> props = serverFactory.getProperties(true); String username = (String) securityProps.get(SecurityConstants.SIGNATURE_USERNAME); if (username == null) { username = (String)securityProps.get("ws-" + SecurityConstants.SIGNATURE_USERNAME); } props.put(SecurityConstants.SIGNATURE_USERNAME, username); props.put(SecurityConstants.CALLBACK_HANDLER, new WSPasswordCallbackHandler(username, (String) securityProps.get(SIGNATURE_PASSWORD))); Object sigProps = securityProps.get(SecurityConstants.SIGNATURE_PROPERTIES); if (sigProps == null) { sigProps = securityProps.get("ws-" + SecurityConstants.SIGNATURE_PROPERTIES); } props.put(SecurityConstants.SIGNATURE_PROPERTIES, sigProps); serverFactory.setProvider(new SamlHeaderInHandler()); } }
public static void configureServer(final AbstractJAXRSFactoryBean serverFactory, final Map<String, Object> securityProps) { Map<String, Object> props = serverFactory.getProperties(true); String username = (String) securityProps.get(SecurityConstants.SIGNATURE_USERNAME); if (username == null) { username = (String)securityProps.get("ws-" + SecurityConstants.SIGNATURE_USERNAME); } props.put(SecurityConstants.SIGNATURE_USERNAME, username); props.put(SecurityConstants.CALLBACK_HANDLER, new WSPasswordCallbackHandler(username, (String) securityProps.get(SIGNATURE_PASSWORD))); Object sigProps = securityProps.get(SecurityConstants.SIGNATURE_PROPERTIES); if (sigProps == null) { sigProps = securityProps.get("ws-" + SecurityConstants.SIGNATURE_PROPERTIES); } props.put(SecurityConstants.SIGNATURE_PROPERTIES, sigProps); serverFactory.setProvider(new SamlHeaderInHandler()); } }
if (bean.getProperties() != null) { Map<String, Object> copy = new HashMap<>(); copy.putAll(bean.getProperties()); setProperties(answer, copy);
if (factory.getProperties() != null) { factory.getProperties().putAll(getProperties()); } else { factory.setProperties(getProperties()); if (factory.getProperties() == null) { factory.setProperties(new HashMap<String, Object>()); factory.getProperties().put(FaultListener.class.getName(), new NullFaultListener());
setupFactory(factory, ep); final Map<String, Object> theProperties = super.getProperties(); final boolean encodeClientParameters = PropertyUtils.isTrue(theProperties, "url.encode.client.parameters"); if (encodeClientParameters) {
final Map<String, Object> theProperties = super.getProperties(); final boolean encodeClientParameters = PropertyUtils.isTrue(theProperties, "url.encode.client.parameters"); if (encodeClientParameters) {
setupFactory(factory, ep); final Map<String, Object> theProperties = super.getProperties(); final boolean encodeClientParameters = PropertyUtils.isTrue(theProperties, "url.encode.client.parameters"); if (encodeClientParameters) {