< prev index next >
test/jdk/sun/security/pkcs11/Provider/ConfigShortPath.java
Print this page
rev 59383 : [mq]: final
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -41,17 +41,13 @@
};
public static void main(String[] args) throws Exception {
Provider p = Security.getProvider("SunPKCS11");
if (p == null) {
- // re-try w/ SunPKCS11-Solaris
- p = Security.getProvider("SunPKCS11-Solaris");
- if (p == null) {
System.out.println("Skipping test - no PKCS11 provider available");
return;
}
- }
String osInfo = System.getProperty("os.name", "");
String[] configNames = (osInfo.contains("Windows")?
winConfigNames : solConfigNames);
< prev index next >