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