Path: blob/master/src/java.security.jgss/share/classes/sun/security/krb5/internal/ASRep.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.PrincipalName;33import sun.security.krb5.EncryptedData;34import sun.security.krb5.Asn1Exception;35import sun.security.krb5.Realm;36import sun.security.krb5.RealmException;37import sun.security.util.*;38import java.io.IOException;3940public class ASRep extends KDCRep {4142public ASRep(43PAData[] new_pAData,44PrincipalName new_cname,45Ticket new_ticket,46EncryptedData new_encPart) throws IOException {47super(new_pAData, new_cname, new_ticket,48new_encPart, Krb5.KRB_AS_REP);49}5051public ASRep(byte[] data) throws Asn1Exception,52RealmException, KrbApErrException, IOException {53init(new DerValue(data));54}5556public ASRep(DerValue encoding) throws Asn1Exception,57RealmException, KrbApErrException, IOException {58init(encoding);59}6061private void init(DerValue encoding) throws Asn1Exception,62RealmException, KrbApErrException, IOException {63init(encoding, Krb5.KRB_AS_REP);64}65}666768