org.apache.directory.shared.kerberos.messages
Class AsReq
java.lang.Object
org.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.kerberos.messages.KerberosMessage
org.apache.directory.shared.kerberos.components.KdcReq
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. |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
AsReq
public AsReq()
- Creates a new instance of AS-REQ.
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.