1/*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * This code is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 only, as
6 * published by the Free Software Foundation.  Oracle designates this
7 * particular file as subject to the "Classpath" exception as provided
8 * by Oracle in the LICENSE file that accompanied this code.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25/*
26 *
27 *  (C) Copyright IBM Corp. 1999 All Rights Reserved.
28 *  Copyright 1997 The Open Group Research Institute.  All rights reserved.
29 */
30
31package sun.security.krb5.internal;
32
33import sun.security.util.*;
34import java.io.IOException;
35
36/**
37 * Implements the ASN.1 KDCOptions type.
38 *
39 * <pre>{@code
40 * KDCOptions   ::= KerberosFlags
41 *      -- reserved(0),
42 *      -- forwardable(1),
43 *      -- forwarded(2),
44 *      -- proxiable(3),
45 *      -- proxy(4),
46 *      -- allow-postdate(5),
47 *      -- postdated(6),
48 *      -- unused7(7),
49 *      -- renewable(8),
50 *      -- unused9(9),
51 *      -- unused10(10),
52 *      -- opt-hardware-auth(11),
53 *      -- unused12(12),
54 *      -- unused13(13),
55 * -- 15 is reserved for canonicalize
56 *      -- unused15(15),
57 * -- 26 was unused in 1510
58 *      -- disable-transited-check(26),
59 *      -- renewable-ok(27),
60 *      -- enc-tkt-in-skey(28),
61 *      -- renew(30),
62 *      -- validate(31)
63 *
64 * KerberosFlags ::= BIT STRING (SIZE (32..MAX))
65 *                   -- minimum number of bits shall be sent,
66 *                   -- but no fewer than 32
67 * }</pre>
68 *
69 * <p>
70 * This definition reflects the Network Working Group RFC 4120
71 * specification available at
72 * <a href="http://www.ietf.org/rfc/rfc4120.txt">
73 * http://www.ietf.org/rfc/rfc4120.txt</a>.
74 */
75
76public class LoginOptions extends KDCOptions {
77
78    // Login Options
79
80    public static final int RESERVED        = 0;
81    public static final int FORWARDABLE     = 1;
82    public static final int PROXIABLE       = 3;
83    public static final int ALLOW_POSTDATE  = 5;
84    public static final int RENEWABLE       = 8;
85    public static final int RENEWABLE_OK    = 27;
86    public static final int ENC_TKT_IN_SKEY = 28;
87    public static final int RENEW           = 30;
88    public static final int VALIDATE        = 31;
89    public static final int MAX             = 31;
90
91}
92