org.apache.directory.server.kerberos.shared.io.encoder
Class EncKdcRepPartEncoder

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.io.encoder.EncKdcRepPartEncoder
All Implemented Interfaces:
Encoder
Direct Known Subclasses:
EncAsRepPartEncoder, EncTgsRepPartEncoder

public abstract class EncKdcRepPartEncoder
extends java.lang.Object
implements Encoder


Constructor Summary
protected EncKdcRepPartEncoder(int applicationCode)
           
 
Method Summary
 byte[] encode(Encodable app)
           
protected  DERSequence encodeInitialSequence(KdcReply reply)
          EncKDCRepPart ::= SEQUENCE { key[0] EncryptionKey, last-req[1] LastReq, nonce[2] INTEGER, key-expiration[3] KerberosTime OPTIONAL, flags[4] TicketFlags, authtime[5] KerberosTime, starttime[6] KerberosTime OPTIONAL, endtime[7] KerberosTime, renew-till[8] KerberosTime OPTIONAL, srealm[9] Realm, sname[10] PrincipalName, caddr[11] HostAddresses OPTIONAL }
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncKdcRepPartEncoder

protected EncKdcRepPartEncoder(int applicationCode)
Method Detail

encode

public byte[] encode(Encodable app)
              throws java.io.IOException
Specified by:
encode in interface Encoder
Throws:
java.io.IOException

encodeInitialSequence

protected DERSequence encodeInitialSequence(KdcReply reply)
EncKDCRepPart ::= SEQUENCE { key[0] EncryptionKey, last-req[1] LastReq, nonce[2] INTEGER, key-expiration[3] KerberosTime OPTIONAL, flags[4] TicketFlags, authtime[5] KerberosTime, starttime[6] KerberosTime OPTIONAL, endtime[7] KerberosTime, renew-till[8] KerberosTime OPTIONAL, srealm[9] Realm, sname[10] PrincipalName, caddr[11] HostAddresses OPTIONAL }