BouncyIntegration.java

23 lines | 447 B Blame History Raw Download
package org.keycloak;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import java.security.Security;

/**
 * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
 * @version $Revision: 1 $
 */
public class BouncyIntegration
{
   static
   {
      if (Security.getProvider("BC") == null) Security.addProvider(new BouncyCastleProvider());
   }

   public static void init()
   {
      // empty, the static class does it
   }
}