Path: blob/master/src/java.security.jgss/share/classes/sun/security/krb5/internal/TGSRep.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.Realm;34import sun.security.krb5.RealmException;35import sun.security.krb5.EncryptedData;36import sun.security.krb5.Asn1Exception;37import sun.security.util.*;38import java.io.IOException;3940public class TGSRep extends KDCRep {4142public TGSRep(43PAData[] new_pAData,44PrincipalName new_cname,45Ticket new_ticket,46EncryptedData new_encPart47) throws IOException {48super(new_pAData, new_cname, new_ticket,49new_encPart, Krb5.KRB_TGS_REP);50}5152public TGSRep(byte[] data) throws Asn1Exception,53RealmException, KrbApErrException, IOException {54init(new DerValue(data));55}5657public TGSRep(DerValue encoding) throws Asn1Exception,58RealmException, KrbApErrException, IOException {59init(encoding);60}6162private void init(DerValue encoding) throws Asn1Exception,63RealmException, KrbApErrException, IOException {64init(encoding, Krb5.KRB_TGS_REP);65}6667}686970