< prev index next >

src/java.base/share/classes/javax/security/auth/callback/ConfirmationCallback.java

Print this page
rev 53560 : 8218022: Repeated words typos in java.base
Reviewed-by: alanb, lancea
Contributed-by: Andrey Turbanov <turbanoff@gmail.com>
   1 /*
   2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  41     /**
  42      * Unspecified option type.
  43      *
  44      * <p> The {@code getOptionType} method returns this
  45      * value if this {@code ConfirmationCallback} was instantiated
  46      * with {@code options} instead of an {@code optionType}.
  47      */
  48     public static final int UNSPECIFIED_OPTION          = -1;
  49 
  50     /**
  51      * YES/NO confirmation option.
  52      *
  53      * <p> An underlying security service specifies this as the
  54      * {@code optionType} to a {@code ConfirmationCallback}
  55      * constructor if it requires a confirmation which can be answered
  56      * with either {@code YES} or {@code NO}.
  57      */
  58     public static final int YES_NO_OPTION               = 0;
  59 
  60     /**
  61      * YES/NO/CANCEL confirmation confirmation option.
  62      *
  63      * <p> An underlying security service specifies this as the
  64      * {@code optionType} to a {@code ConfirmationCallback}
  65      * constructor if it requires a confirmation which can be answered
  66      * with either {@code YES}, {@code NO} or {@code CANCEL}.
  67      */
  68     public static final int YES_NO_CANCEL_OPTION        = 1;
  69 
  70     /**
  71      * OK/CANCEL confirmation confirmation option.
  72      *
  73      * <p> An underlying security service specifies this as the
  74      * {@code optionType} to a {@code ConfirmationCallback}
  75      * constructor if it requires a confirmation which can be answered
  76      * with either {@code OK} or {@code CANCEL}.
  77      */
  78     public static final int OK_CANCEL_OPTION            = 2;
  79 
  80     /**
  81      * YES option.
  82      *
  83      * <p> If an {@code optionType} was specified to this
  84      * {@code ConfirmationCallback}, this option may be specified as a
  85      * {@code defaultOption} or returned as the selected index.
  86      */
  87     public static final int YES                         = 0;
  88 
  89     /**
  90      * NO option.
  91      *


   1 /*
   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.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  41     /**
  42      * Unspecified option type.
  43      *
  44      * <p> The {@code getOptionType} method returns this
  45      * value if this {@code ConfirmationCallback} was instantiated
  46      * with {@code options} instead of an {@code optionType}.
  47      */
  48     public static final int UNSPECIFIED_OPTION          = -1;
  49 
  50     /**
  51      * YES/NO confirmation option.
  52      *
  53      * <p> An underlying security service specifies this as the
  54      * {@code optionType} to a {@code ConfirmationCallback}
  55      * constructor if it requires a confirmation which can be answered
  56      * with either {@code YES} or {@code NO}.
  57      */
  58     public static final int YES_NO_OPTION               = 0;
  59 
  60     /**
  61      * YES/NO/CANCEL confirmation option.
  62      *
  63      * <p> An underlying security service specifies this as the
  64      * {@code optionType} to a {@code ConfirmationCallback}
  65      * constructor if it requires a confirmation which can be answered
  66      * with either {@code YES}, {@code NO} or {@code CANCEL}.
  67      */
  68     public static final int YES_NO_CANCEL_OPTION        = 1;
  69 
  70     /**
  71      * OK/CANCEL confirmation option.
  72      *
  73      * <p> An underlying security service specifies this as the
  74      * {@code optionType} to a {@code ConfirmationCallback}
  75      * constructor if it requires a confirmation which can be answered
  76      * with either {@code OK} or {@code CANCEL}.
  77      */
  78     public static final int OK_CANCEL_OPTION            = 2;
  79 
  80     /**
  81      * YES option.
  82      *
  83      * <p> If an {@code optionType} was specified to this
  84      * {@code ConfirmationCallback}, this option may be specified as a
  85      * {@code defaultOption} or returned as the selected index.
  86      */
  87     public static final int YES                         = 0;
  88 
  89     /**
  90      * NO option.
  91      *


< prev index next >