author | mbalao |
Wed, 05 Jun 2019 01:42:11 -0300 | |
changeset 55258 | d65d3c37232c |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
3 |
* |
|
4 |
* This code is free software; you can redistribute it and/or modify it |
|
5 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 6 |
* published by the Free Software Foundation. Oracle designates this |
2 | 7 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 8 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 9 |
* |
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 |
* |
|
5506 | 20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 |
* or visit www.oracle.com if you need additional information or have any |
|
22 |
* questions. |
|
2 | 23 |
*/ |
24 |
||
25 |
/* |
|
26 |
* (C) Copyright IBM Corp. 1999 All Rights Reserved. |
|
27 |
* Copyright 1997 The Open Group Research Institute. All rights reserved. |
|
28 |
*/ |
|
29 |
||
30 |
package sun.security.krb5.internal; |
|
31 |
||
32 |
import sun.security.krb5.*; |
|
33 |
import sun.security.util.*; |
|
34 |
import java.io.IOException; |
|
35 |
||
36 |
public class EncTGSRepPart extends EncKDCRepPart { |
|
37 |
||
73 | 38 |
public EncTGSRepPart( |
39 |
EncryptionKey new_key, |
|
40 |
LastReq new_lastReq, |
|
41 |
int new_nonce, |
|
42 |
KerberosTime new_keyExpiration, |
|
43 |
TicketFlags new_flags, |
|
44 |
KerberosTime new_authtime, |
|
45 |
KerberosTime new_starttime, |
|
46 |
KerberosTime new_endtime, |
|
47 |
KerberosTime new_renewTill, |
|
48 |
PrincipalName new_sname, |
|
55258
d65d3c37232c
8215032: Support Kerberos cross-realm referrals (RFC 6806)
mbalao
parents:
47216
diff
changeset
|
49 |
HostAddresses new_caddr, |
d65d3c37232c
8215032: Support Kerberos cross-realm referrals (RFC 6806)
mbalao
parents:
47216
diff
changeset
|
50 |
PAData[] new_pAData) { |
73 | 51 |
super( |
52 |
new_key, |
|
53 |
new_lastReq, |
|
54 |
new_nonce, |
|
55 |
new_keyExpiration, |
|
56 |
new_flags, |
|
57 |
new_authtime, |
|
58 |
new_starttime, |
|
59 |
new_endtime, |
|
60 |
new_renewTill, |
|
61 |
new_sname, |
|
62 |
new_caddr, |
|
55258
d65d3c37232c
8215032: Support Kerberos cross-realm referrals (RFC 6806)
mbalao
parents:
47216
diff
changeset
|
63 |
new_pAData, |
73 | 64 |
Krb5.KRB_ENC_TGS_REP_PART); |
65 |
} |
|
2 | 66 |
|
73 | 67 |
public EncTGSRepPart(byte[] data) throws Asn1Exception, |
68 |
IOException, KrbException { |
|
69 |
init(new DerValue(data)); |
|
70 |
} |
|
2 | 71 |
|
73 | 72 |
public EncTGSRepPart(DerValue encoding) throws Asn1Exception, |
73 |
IOException, KrbException { |
|
74 |
init(encoding); |
|
75 |
} |
|
2 | 76 |
|
73 | 77 |
private void init(DerValue encoding) throws Asn1Exception, |
78 |
IOException, KrbException { |
|
79 |
init(encoding, Krb5.KRB_ENC_TGS_REP_PART); |
|
80 |
} |
|
2 | 81 |
|
73 | 82 |
public byte[] asn1Encode() throws Asn1Exception, |
83 |
IOException { |
|
84 |
return asn1Encode(Krb5.KRB_ENC_TGS_REP_PART); |
|
85 |
} |
|
2 | 86 |
} |