Skip to content

Instantly share code, notes, and snippets.

@fhanik
Created August 23, 2016 21:37
Show Gist options
  • Select an option

  • Save fhanik/a07dab109f476fa2d495a42508b92fa2 to your computer and use it in GitHub Desktop.

Select an option

Save fhanik/a07dab109f476fa2d495a42508b92fa2 to your computer and use it in GitHub Desktop.
<bean id="samlConfiguration"
class="org.opensaml.xml.Configuration"
factory-method="getGlobalSecurityConfiguration">
</bean>
<bean id="setSamlSignatureAlgorithm1" class="org.springframework.beans.factory.config.MethodInvokingBean">
<property name="targetObject" ref="samlConfiguration"/>
<property name="targetMethod" value="setSignatureReferenceDigestMethod"/>
<property name="arguments">
<list>
<value type="java.lang.String">${login.saml.signatureAlgorithm:http://www.w3.org/2000/09/xmldsig#rsa-sha1}</value>
</list>
</property>
</bean>
<bean id="setSamlSignatureAlgorithm2" class="org.springframework.beans.factory.config.MethodInvokingBean">
<property name="targetObject" ref="samlConfiguration"/>
<property name="targetMethod" value="registerSignatureAlgorithmURI"/>
<property name="arguments">
<list>
<value type="java.lang.String">RSA</value>
<value type="java.lang.String">${login.saml.signatureAlgorithm:http://www.w3.org/2000/09/xmldsig#rsa-sha1}</value>
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment