public class ApReq extends KerberosMessage
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 and Description |
---|
ApReq()
Creates a new instance of ApplicationRequest.
|
Modifier and Type | Method and Description |
---|---|
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 options
|
void |
setTicket(Ticket ticket)
Sets the
Ticket . |
String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
public ApReq()
public ApOptions getApOptions()
ApOptions
.ApOptions
.public boolean getOption(int option)
option
- public void setOption(ApOptions apOptions)
apOptions
- The options to setpublic 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 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.api.asn1.EncoderException
buffer
- The buffer containing the encoded resultorg.apache.directory.api.asn1.EncoderException
- If the encoding failedpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.