mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8246383: NullPointerException in JceSecurity.getVerificationResult when using Entrust provider
Removed the static SecureRandom object in JceSecurity whose instantion caused NPE Reviewed-by: xuelei
This commit is contained in:
parent
b2da6e1a90
commit
03f2ab325d
5 changed files with 15 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -75,11 +75,8 @@ import sun.security.util.Debug;
|
|||
|
||||
final class JceSecurity {
|
||||
|
||||
|
||||
private static final Debug debug = Debug.getInstance("jca");
|
||||
|
||||
static final SecureRandom RANDOM = new SecureRandom();
|
||||
|
||||
// The defaultPolicy and exemptPolicy will be set up
|
||||
// in the static initializer.
|
||||
private static CryptoPermissions defaultPolicy = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue