1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, 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 |
56 * with either {@code YES} or {@code NO}. |
56 * with either {@code YES} or {@code NO}. |
57 */ |
57 */ |
58 public static final int YES_NO_OPTION = 0; |
58 public static final int YES_NO_OPTION = 0; |
59 |
59 |
60 /** |
60 /** |
61 * YES/NO/CANCEL confirmation confirmation option. |
61 * YES/NO/CANCEL confirmation option. |
62 * |
62 * |
63 * <p> An underlying security service specifies this as the |
63 * <p> An underlying security service specifies this as the |
64 * {@code optionType} to a {@code ConfirmationCallback} |
64 * {@code optionType} to a {@code ConfirmationCallback} |
65 * constructor if it requires a confirmation which can be answered |
65 * constructor if it requires a confirmation which can be answered |
66 * with either {@code YES}, {@code NO} or {@code CANCEL}. |
66 * with either {@code YES}, {@code NO} or {@code CANCEL}. |
67 */ |
67 */ |
68 public static final int YES_NO_CANCEL_OPTION = 1; |
68 public static final int YES_NO_CANCEL_OPTION = 1; |
69 |
69 |
70 /** |
70 /** |
71 * OK/CANCEL confirmation confirmation option. |
71 * OK/CANCEL confirmation option. |
72 * |
72 * |
73 * <p> An underlying security service specifies this as the |
73 * <p> An underlying security service specifies this as the |
74 * {@code optionType} to a {@code ConfirmationCallback} |
74 * {@code optionType} to a {@code ConfirmationCallback} |
75 * constructor if it requires a confirmation which can be answered |
75 * constructor if it requires a confirmation which can be answered |
76 * with either {@code OK} or {@code CANCEL}. |
76 * with either {@code OK} or {@code CANCEL}. |