< prev index next >

src/java.security.jgss/share/classes/sun/security/krb5/internal/EncTGSRepPart.java

Print this page
rev 54745 : 8215032: Support Kerberos cross-realm referrals (RFC 6806)
Reviewed-by: weijun


  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 
  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,
  49             HostAddresses new_caddr) {

  50         super(
  51                 new_key,
  52                 new_lastReq,
  53                 new_nonce,
  54                 new_keyExpiration,
  55                 new_flags,
  56                 new_authtime,
  57                 new_starttime,
  58                 new_endtime,
  59                 new_renewTill,
  60                 new_sname,
  61                 new_caddr,

  62                 Krb5.KRB_ENC_TGS_REP_PART);
  63     }
  64 
  65     public EncTGSRepPart(byte[] data) throws Asn1Exception,
  66             IOException, KrbException {
  67         init(new DerValue(data));
  68     }
  69 
  70     public EncTGSRepPart(DerValue encoding) throws Asn1Exception,
  71             IOException, KrbException {
  72         init(encoding);
  73     }
  74 
  75     private void init(DerValue encoding) throws Asn1Exception,
  76             IOException, KrbException {
  77         init(encoding, Krb5.KRB_ENC_TGS_REP_PART);
  78     }
  79 
  80     public byte[] asn1Encode() throws Asn1Exception,
  81             IOException {


  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 
  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,
  49             HostAddresses new_caddr,
  50             PAData[] new_pAData) {
  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                 new_pAData,
  64                 Krb5.KRB_ENC_TGS_REP_PART);
  65     }
  66 
  67     public EncTGSRepPart(byte[] data) throws Asn1Exception,
  68             IOException, KrbException {
  69         init(new DerValue(data));
  70     }
  71 
  72     public EncTGSRepPart(DerValue encoding) throws Asn1Exception,
  73             IOException, KrbException {
  74         init(encoding);
  75     }
  76 
  77     private void init(DerValue encoding) throws Asn1Exception,
  78             IOException, KrbException {
  79         init(encoding, Krb5.KRB_ENC_TGS_REP_PART);
  80     }
  81 
  82     public byte[] asn1Encode() throws Asn1Exception,
  83             IOException {
< prev index next >