30
31 package sun.security.krb5.internal;
32
33 import sun.security.krb5.*;
34 import sun.security.util.*;
35 import java.io.IOException;
36
37 public class EncASRepPart extends EncKDCRepPart {
38
39 public EncASRepPart(
40 EncryptionKey new_key,
41 LastReq new_lastReq,
42 int new_nonce,
43 KerberosTime new_keyExpiration,
44 TicketFlags new_flags,
45 KerberosTime new_authtime,
46 KerberosTime new_starttime,
47 KerberosTime new_endtime,
48 KerberosTime new_renewTill,
49 PrincipalName new_sname,
50 HostAddresses new_caddr) {
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,
63 Krb5.KRB_ENC_AS_REP_PART
64 );
65 //may need to use Krb5.KRB_ENC_TGS_REP_PART to mimic
66 //behavior of other implementaions, instead of above
67 }
68
69 public EncASRepPart(byte[] data) throws Asn1Exception,
70 IOException, KrbException {
71 init(new DerValue(data));
72 }
73
74 public EncASRepPart(DerValue encoding) throws Asn1Exception,
75 IOException, KrbException {
76 init(encoding);
77 }
78
79 private void init(DerValue encoding) throws Asn1Exception,
80 IOException, KrbException {
81 init(encoding, Krb5.KRB_ENC_AS_REP_PART);
82 }
|
30
31 package sun.security.krb5.internal;
32
33 import sun.security.krb5.*;
34 import sun.security.util.*;
35 import java.io.IOException;
36
37 public class EncASRepPart extends EncKDCRepPart {
38
39 public EncASRepPart(
40 EncryptionKey new_key,
41 LastReq new_lastReq,
42 int new_nonce,
43 KerberosTime new_keyExpiration,
44 TicketFlags new_flags,
45 KerberosTime new_authtime,
46 KerberosTime new_starttime,
47 KerberosTime new_endtime,
48 KerberosTime new_renewTill,
49 PrincipalName new_sname,
50 HostAddresses new_caddr,
51 PAData[] new_pAData) {
52 super(
53 new_key,
54 new_lastReq,
55 new_nonce,
56 new_keyExpiration,
57 new_flags,
58 new_authtime,
59 new_starttime,
60 new_endtime,
61 new_renewTill,
62 new_sname,
63 new_caddr,
64 new_pAData,
65 Krb5.KRB_ENC_AS_REP_PART
66 );
67 //may need to use Krb5.KRB_ENC_TGS_REP_PART to mimic
68 //behavior of other implementaions, instead of above
69 }
70
71 public EncASRepPart(byte[] data) throws Asn1Exception,
72 IOException, KrbException {
73 init(new DerValue(data));
74 }
75
76 public EncASRepPart(DerValue encoding) throws Asn1Exception,
77 IOException, KrbException {
78 init(encoding);
79 }
80
81 private void init(DerValue encoding) throws Asn1Exception,
82 IOException, KrbException {
83 init(encoding, Krb5.KRB_ENC_AS_REP_PART);
84 }
|