jdk/src/share/classes/sun/security/pkcs11/P11Util.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
child 17916 e02ddef88f77
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    86             return p;
    86             return p;
    87         }
    87         }
    88         p = Security.getProvider(providerName);
    88         p = Security.getProvider(providerName);
    89         if (p == null) {
    89         if (p == null) {
    90             try {
    90             try {
    91                 Class clazz = Class.forName(className);
    91                 Class<?> clazz = Class.forName(className);
    92                 p = (Provider)clazz.newInstance();
    92                 p = (Provider)clazz.newInstance();
    93             } catch (Exception e) {
    93             } catch (Exception e) {
    94                 throw new ProviderException
    94                 throw new ProviderException
    95                         ("Could not find provider " + providerName, e);
    95                         ("Could not find provider " + providerName, e);
    96             }
    96             }