Path: blob/master/src/java.security.jgss/share/classes/sun/security/krb5/internal/ASReq.java
41161 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.krb5.*;33import sun.security.util.*;34import java.io.IOException;3536public class ASReq extends KDCReq {3738public ASReq(PAData[] new_pAData, KDCReqBody new_reqBody) throws IOException {39super(new_pAData, new_reqBody, Krb5.KRB_AS_REQ);40}4142public ASReq(byte[] data) throws Asn1Exception, KrbException, IOException {43init(new DerValue(data));44}4546public ASReq(DerValue encoding) throws Asn1Exception, KrbException, IOException {47init(encoding);48}4950private void init(DerValue encoding) throws Asn1Exception, IOException, KrbException {51super.init(encoding, Krb5.KRB_AS_REQ);52}53}545556