Path: blob/master/src/java.security.jgss/share/classes/sun/security/krb5/internal/EncTGSRepPart.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* (C) Copyright IBM Corp. 1999 All Rights Reserved.26* Copyright 1997 The Open Group Research Institute. All rights reserved.27*/2829package sun.security.krb5.internal;3031import sun.security.krb5.*;32import sun.security.util.*;33import java.io.IOException;3435public class EncTGSRepPart extends EncKDCRepPart {3637public EncTGSRepPart(38EncryptionKey new_key,39LastReq new_lastReq,40int new_nonce,41KerberosTime new_keyExpiration,42TicketFlags new_flags,43KerberosTime new_authtime,44KerberosTime new_starttime,45KerberosTime new_endtime,46KerberosTime new_renewTill,47PrincipalName new_sname,48HostAddresses new_caddr,49PAData[] new_pAData) {50super(51new_key,52new_lastReq,53new_nonce,54new_keyExpiration,55new_flags,56new_authtime,57new_starttime,58new_endtime,59new_renewTill,60new_sname,61new_caddr,62new_pAData,63Krb5.KRB_ENC_TGS_REP_PART);64}6566public EncTGSRepPart(byte[] data) throws Asn1Exception,67IOException, KrbException {68init(new DerValue(data));69}7071public EncTGSRepPart(DerValue encoding) throws Asn1Exception,72IOException, KrbException {73init(encoding);74}7576private void init(DerValue encoding) throws Asn1Exception,77IOException, KrbException {78init(encoding, Krb5.KRB_ENC_TGS_REP_PART);79}8081public byte[] asn1Encode() throws Asn1Exception,82IOException {83return asn1Encode(Krb5.KRB_ENC_TGS_REP_PART);84}85}868788