mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-19 04:13:07 +00:00
8178458: Better use of certificates in LDAP
Reviewed-by: vinnie, asmotrak
This commit is contained in:
parent
143cb6a2d2
commit
cd9f1a5c05
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2017, 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
|
||||
@ -136,6 +136,11 @@ public final class LDAPCertStore extends CertStoreSpi {
|
||||
+ params.getClass().getName() + " passed");
|
||||
}
|
||||
|
||||
SecurityManager security = System.getSecurityManager();
|
||||
if (security != null) {
|
||||
security.checkConnect(serverName, port);
|
||||
}
|
||||
|
||||
Key k = new Key(serverName, port);
|
||||
LDAPCertStoreImpl lci = certStoreCache.get(k);
|
||||
if (lci == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user