title: Global security configuration in OpenSAML 3.0+
body: <p>I'm upgrading OpenSAML in a Java 8 project from v 2.6.1 to 3.3.1
  A lot of code compilation errors are fixable pretty easy but I'm stuck at a certain point.</p>
  
  <p>If we use a signing Algorithm we had previously following code:</p>
  
  <pre><code>KeyPair signingKeyPair = parseKeyPair(properties.getProperty("signingKey"), properties.getProperty("signingKeyPassword"));
  signingCredential = createCredential(signingKeyPair, serviceProviderID, UsageType.SIGNING);
  if (properties.getProperty("signingAlgorithm") != null) {
      SecurityConfiguration securityConfiguration = Configuration.getGlobalSecurityConfiguration();
      if (securityConfiguration instanceof BasicSecurityConfiguration &amp;&amp; "RSA".equals(signingCredential.getPublicKey().getAlgorithm())) {
                 ((BasicSecurityConfiguration) securityConfiguration).registerSignatureAlgorithmURI("RSA", properties.getProperty("signingAlgorithm"));
      }
  }
  </code></pre>
  
  <p>In OpenSAML 3.0+ the line Configuration.getGlobalSecurityConfiguration(); doesn't compile anymore. How do I get the global security configuration in OpenSAML 3.0+?</p>