equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, 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 |
33 import java.security.cert.X509Certificate; |
33 import java.security.cert.X509Certificate; |
34 |
34 |
35 import sun.security.pkcs11.wrapper.*; |
35 import sun.security.pkcs11.wrapper.*; |
36 import static sun.security.pkcs11.wrapper.PKCS11Constants.*; |
36 import static sun.security.pkcs11.wrapper.PKCS11Constants.*; |
37 |
37 |
38 import javax.tools.annotation.GenerateNativeHeader; |
|
39 |
38 |
40 /** |
39 /** |
41 * The Secmod class defines the interface to the native NSS |
40 * The Secmod class defines the interface to the native NSS |
42 * library and the configuration information it stores in its |
41 * library and the configuration information it stores in its |
43 * secmod.db file. |
42 * secmod.db file. |
55 * </pre> |
54 * </pre> |
56 * |
55 * |
57 * @since 1.6 |
56 * @since 1.6 |
58 * @author Andreas Sterbenz |
57 * @author Andreas Sterbenz |
59 */ |
58 */ |
60 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
61 @GenerateNativeHeader |
|
62 public final class Secmod { |
59 public final class Secmod { |
63 |
60 |
64 private final static boolean DEBUG = false; |
61 private final static boolean DEBUG = false; |
65 |
62 |
66 private final static Secmod INSTANCE; |
63 private final static Secmod INSTANCE; |