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

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.KdcReq
              extended by org.apache.directory.shared.kerberos.messages.AsReq
All Implemented Interfaces:
org.apache.directory.shared.asn1.Asn1Object

public class AsReq
extends KdcReq

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

 AS-REQ          ::= [APPLICATION 10] 
 

Author:
Apache Directory Project

Constructor Summary
AsReq()
          Creates a new instance of AS-REQ.
 
Method Summary
 int computeLength()
          Compute the AS-REQ length
 ByteBuffer encode(ByteBuffer buffer)
          Encode the AS-REQ component
 
Methods inherited from class org.apache.directory.shared.kerberos.components.KdcReq
addPaData, getKdcReqBody, getPaData, getPvno, setKdcReqBody, setPvno, 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

AsReq

public AsReq()
Creates a new instance of AS-REQ.

Method Detail

computeLength

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

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

encode

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

Specified by:
encode in interface org.apache.directory.shared.asn1.Asn1Object
Overrides:
encode in class KdcReq
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.