Commit cd434291 authored by michael.simon's avatar michael.simon
Browse files

Register bouncy castle crypto on another possible position

parent b77accfb
......@@ -14,6 +14,8 @@ import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.Provider;
import java.security.Security;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
......@@ -121,6 +123,10 @@ public class SecurityFilter implements Filter {
@Override
public void init(FilterConfig config) throws ServletException {
if (Security.getProvider("BC") == null) {
logger.info("Register bouncy castle crypto provider");
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
}
}
private Set<String> convertRoles(List<RoleEntity> roleList) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment