01: /*
02: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
03: *
04: * This code is free software; you can redistribute it and/or modify it
05: * under the terms of the GNU General Public License version 2 only, as
06: * published by the Free Software Foundation. Sun designates this
07: * particular file as subject to the "Classpath" exception as provided
08: * by Sun in the LICENSE file that accompanied this code.
09: *
10: * This code is distributed in the hope that it will be useful, but WITHOUT
11: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13: * version 2 for more details (a copy is included in the LICENSE file that
14: * accompanied this code).
15: *
16: * You should have received a copy of the GNU General Public License version
17: * 2 along with this work; if not, write to the Free Software Foundation,
18: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19: *
20: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21: * CA 95054 USA or visit www.sun.com if you need additional information or
22: * have any questions.
23: */
24:
25: /*
26: * @(#)TGSRep.java 1.17 07/04/27
27: *
28: * (C) Copyright IBM Corp. 1999 All Rights Reserved.
29: * Copyright 1997 The Open Group Research Institute. All rights reserved.
30: */
31:
32: package sun.security.krb5.internal;
33:
34: import sun.security.krb5.PrincipalName;
35: import sun.security.krb5.Realm;
36: import sun.security.krb5.RealmException;
37: import sun.security.krb5.EncryptedData;
38: import sun.security.krb5.Asn1Exception;
39: import sun.security.util.*;
40: import java.io.IOException;
41:
42: public class TGSRep extends KDCRep {
43:
44: public TGSRep(PAData[] new_pAData, Realm new_crealm,
45: PrincipalName new_cname, Ticket new_ticket,
46: EncryptedData new_encPart) throws IOException {
47: super (new_pAData, new_crealm, new_cname, new_ticket,
48: new_encPart, Krb5.KRB_TGS_REP);
49: }
50:
51: public TGSRep(byte[] data) throws Asn1Exception, RealmException,
52: KrbApErrException, IOException {
53: init(new DerValue(data));
54: }
55:
56: public TGSRep(DerValue encoding) throws Asn1Exception,
57: RealmException, KrbApErrException, IOException {
58: init(encoding);
59: }
60:
61: private void init(DerValue encoding) throws Asn1Exception,
62: RealmException, KrbApErrException, IOException {
63: init(encoding, Krb5.KRB_TGS_REP);
64: }
65:
66: }
|