org.apache.directory.shared.kerberos.messages
Class AsRep

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.kerberos.messages.KerberosMessage
          extended by org.apache.directory.shared.kerberos.components.KdcRep
              extended by org.apache.directory.shared.kerberos.messages.AsRep
All Implemented Interfaces:
org.apache.directory.shared.asn1.Asn1Object

public class AsRep
extends KdcRep

AS-REQ message. It's just a KDC-REP message with a message type set to 11. It will store the object described by the ASN.1 grammar :

 AS-REP          ::= [APPLICATION 11] 
 

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.kerberos.components.KdcRep
encKdcRepPart
 
Constructor Summary
AsRep()
          Creates a new instance of AS-REP.
 
Method Summary
 int computeLength()
          Compute the AS-REP length
 ByteBuffer encode(ByteBuffer buffer)
          Encode the AS-REP component
 KerberosTime getEndTime()
          Returns the end KerberosTime.
 TicketFlags getFlags()
          Returns the TicketFlags.
 int getNonce()
          Returns the nonce.
 KerberosTime getRenewTill()
          Returns the renew till KerberosTime.
 PrincipalName getSName()
          Returns the server PrincipalName.
 KerberosTime getStartTime()
          Returns the start KerberosTime.
 
Methods inherited from class org.apache.directory.shared.kerberos.components.KdcRep
addPaData, getCName, getCRealm, getEncKdcRepPart, getEncPart, getPaData, getPvno, getTicket, setCName, setCRealm, setEncKdcRepPart, setEncPart, setPvno, setTicket, toString
 
Methods inherited from class org.apache.directory.shared.kerberos.messages.KerberosMessage
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsRep

public AsRep()
Creates a new instance of AS-REP.

Method Detail

getEndTime

public KerberosTime getEndTime()
Returns the end KerberosTime.

Returns:
The end KerberosTime.

getFlags

public TicketFlags getFlags()
Returns the TicketFlags.

Returns:
The TicketFlags.

getNonce

public int getNonce()
Returns the nonce.

Returns:
The nonce.

getRenewTill

public KerberosTime getRenewTill()
Returns the renew till KerberosTime.

Returns:
The renew till KerberosTime.

getStartTime

public KerberosTime getStartTime()
Returns the start KerberosTime.

Returns:
The start KerberosTime.

getSName

public PrincipalName getSName()
Returns the server PrincipalName.

Returns:
The server PrincipalName.

computeLength

public int computeLength()
Compute the AS-REP length
 AS-REP :
 
 0x6B L1 AS-REP message
  |
  +-->  0x30 L2 KDC-REP sequence
 

Specified by:
computeLength in interface org.apache.directory.shared.asn1.Asn1Object
Overrides:
computeLength in class KdcRep

encode

public ByteBuffer encode(ByteBuffer buffer)
                  throws org.apache.directory.shared.asn1.EncoderException
Encode the AS-REP component

Specified by:
encode in interface org.apache.directory.shared.asn1.Asn1Object
Overrides:
encode in class KdcRep
Parameters:
buffer - The buffer containing the encoded result
Returns:
The encoded component
Throws:
org.apache.directory.shared.asn1.EncoderException - If the encoding failed


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.