38 import sun.security.util.*; |
38 import sun.security.util.*; |
39 import java.io.IOException; |
39 import java.io.IOException; |
40 |
40 |
41 public class ASRep extends KDCRep { |
41 public class ASRep extends KDCRep { |
42 |
42 |
43 public ASRep( |
43 public ASRep( |
44 PAData[] new_pAData, |
44 PAData[] new_pAData, |
45 Realm new_crealm, |
45 Realm new_crealm, |
46 PrincipalName new_cname, |
46 PrincipalName new_cname, |
47 Ticket new_ticket, |
47 Ticket new_ticket, |
48 EncryptedData new_encPart |
48 EncryptedData new_encPart) throws IOException { |
49 ) throws IOException { |
49 super(new_pAData, new_crealm, new_cname, new_ticket, |
50 super(new_pAData, new_crealm, new_cname, new_ticket, |
50 new_encPart, Krb5.KRB_AS_REP); |
51 new_encPart, Krb5.KRB_AS_REP); |
51 } |
52 } |
|
53 |
52 |
54 public ASRep(byte[] data) throws Asn1Exception, |
53 public ASRep(byte[] data) throws Asn1Exception, |
55 RealmException, KrbApErrException, IOException { |
54 RealmException, KrbApErrException, IOException { |
56 init(new DerValue(data)); |
55 init(new DerValue(data)); |
57 } |
56 } |
58 |
57 |
59 public ASRep(DerValue encoding) throws Asn1Exception, |
58 public ASRep(DerValue encoding) throws Asn1Exception, |
60 RealmException, KrbApErrException, IOException { |
59 RealmException, KrbApErrException, IOException { |
61 init(encoding); |
60 init(encoding); |
62 } |
61 } |
63 |
62 |
64 private void init(DerValue encoding) throws Asn1Exception, |
63 private void init(DerValue encoding) throws Asn1Exception, |
65 RealmException, KrbApErrException, IOException { |
64 RealmException, KrbApErrException, IOException { |
66 init(encoding, Krb5.KRB_AS_REP); |
65 init(encoding, Krb5.KRB_AS_REP); |
67 } |
66 } |
68 |
|
69 } |
67 } |