Skip to content

Instantly share code, notes, and snippets.

@sw-samuraj
Last active January 29, 2018 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sw-samuraj/742c408960d655bf4794b0015ba284fb to your computer and use it in GitHub Desktop.
Save sw-samuraj/742c408960d655bf4794b0015ba284fb to your computer and use it in GitHub Desktop.
public class SamlBootstrapSha256 extends SAMLBootstrap {
@Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
throws BeansException {
super.postProcessBeanFactory(beanFactory);
BasicSecurityConfiguration config =
(BasicSecurityConfiguration) Configuration.getGlobalSecurityConfiguration();
config.registerSignatureAlgorithmURI(
"RSA", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment