|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.kerberos.messages.KerberosMessage
org.apache.directory.shared.kerberos.messages.ApReq
public class ApReq
AP-REQ message component . It will store the object described by the ASN.1 grammar :
AP-REQ ::= [APPLICATION 14] SEQUENCE {
pvno [0] INTEGER (5),
msg-type [1] INTEGER (14),
ap-options [2] APOptions,
ticket [3] Ticket,
authenticator [4] EncryptedData -- Authenticator
}
| Constructor Summary | |
|---|---|
ApReq()
Creates a new instance of ApplicationRequest. |
|
| Method Summary | |
|---|---|
void |
clearOption(int option)
Clears the option at a specified index. |
int |
computeLength()
Compute the AP-REQ length |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AP-REQ component |
ApOptions |
getApOptions()
Returns the ApOptions. |
EncryptedData |
getAuthenticator()
Returns the EncryptedData. |
boolean |
getOption(int option)
Returns the option at a specified index. |
Ticket |
getTicket()
Returns the Ticket. |
void |
setApOptions(ApOptions options)
Sets the ApOptions. |
void |
setAuthenticator(EncryptedData authenticator)
Sets the EncryptedData. |
void |
setOption(ApOptions apOptions)
Sets the option at a specified index. |
void |
setTicket(Ticket ticket)
Sets the Ticket. |
String |
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 |
|---|
public ApReq()
| Method Detail |
|---|
public ApOptions getApOptions()
ApOptions.
ApOptions.public Ticket getTicket()
Ticket.
Ticket.public boolean getOption(int option)
option -
public void setOption(ApOptions apOptions)
option - public void clearOption(int option)
option - public EncryptedData getAuthenticator()
EncryptedData.
EncryptedData.public void setAuthenticator(EncryptedData authenticator)
EncryptedData.
authenticator - The encrypted authenticatorpublic void setApOptions(ApOptions options)
ApOptions.
options - public void setTicket(Ticket ticket)
Ticket.
ticket - public int computeLength()
AP-REQ :
0x6E L1 AP-REQ [APPLICATION 14]
|
+--> 0x30 L2
|
+--> 0xA0 0x03 pvno tag
| |
| +--> 0x02 0x01 0x05 pvno (5)
|
+--> 0xA1 0x03 msg-type tag
| |
| +--> 0x02 0x01 0x0E msg-type (14)
|
+--> 0xA2 0x03 APOptions tag
| |
| +--> 0x03 0x05 0x00 b1 b2 b3 b4 APOtions
|
+--> 0xA3 L3 ticket tag
| |
| +--> 0x61 L3-1 ticket
|
+--> 0xA4 L4 authenticator tag
|
+--> 0x30 L4-1 authenticator (encrypted)
public ByteBuffer encode(ByteBuffer buffer)
throws org.apache.directory.shared.asn1.EncoderException
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer containing the encoded result
org.apache.directory.shared.asn1.EncoderException - If the encoding failedpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||