public class Authenticator extends KerberosMessage
Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno [0] INTEGER (5), crealm [1] Realm, cname [2] <PrincipalName>, cksum [3] <Checksum> OPTIONAL, cusec [4] Microseconds, ctime [5] KerberosTime, subkey [6] <EncryptionKey> OPTIONAL, seq-number [7] UInt32 OPTIONAL, authorization-data [8] <AuthorizationData> OPTIONAL }
Constructor and Description |
---|
Authenticator()
Creates a new instance of Authenticator.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the Authenticator length
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the Authenticator message to a PDU.
|
AuthorizationData |
getAuthorizationData()
Returns the
AuthorizationData . |
Checksum |
getCksum() |
PrincipalName |
getCName() |
String |
getCRealm() |
KerberosTime |
getCtime() |
int |
getCusec() |
Integer |
getSeqNumber() |
EncryptionKey |
getSubKey() |
int |
getVersionNumber()
Returns the version number of the
Authenticator . |
void |
setAuthorizationData(AuthorizationData authorizationData) |
void |
setCksum(Checksum cksum) |
void |
setCName(PrincipalName cname) |
void |
setCRealm(String crealm) |
void |
setCTime(KerberosTime ctime) |
void |
setCusec(int cusec) |
void |
setSeqNumber(int seqNumber) |
void |
setSubKey(EncryptionKey subKey) |
void |
setVersionNumber(int versionNumber) |
String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
public Authenticator()
public AuthorizationData getAuthorizationData()
AuthorizationData
.AuthorizationData
.public void setAuthorizationData(AuthorizationData authorizationData)
authorizationData
- the authorizationData to setpublic PrincipalName getCName()
public void setCName(PrincipalName cname)
cname
- the cname to setpublic KerberosTime getCtime()
public void setCTime(KerberosTime ctime)
ctime
- the ctime to setpublic int getCusec()
public void setCusec(int cusec)
cusec
- the cusec to setpublic Integer getSeqNumber()
public void setSeqNumber(int seqNumber)
seqNumber
- the seqNumber to setpublic EncryptionKey getSubKey()
public void setSubKey(EncryptionKey subKey)
subKey
- the subKey to setpublic int getVersionNumber()
Authenticator
.Authenticator
.public void setVersionNumber(int versionNumber)
versionNumber
- the versionNumber to setpublic int computeLength()
Authenticator : 0x62 L1 Authenticator [APPLICATION 2] | +--> 0x30 L2 Authenticator SEQUENCE | +--> 0xA0 03 authenticator-vno tag | | | +--> 0x02 0x01 0x05 authenticator-vno (int, 5) | +--> 0xA1 L3 crealm tag | | | +--> 0x1B L3-1 crealm (KerberosString) | +--> 0xA2 L4 cname (PrincipalName) | +--> 0xA3 L5 cksum (CheckSum) | +--> 0xA4 L6 cusec tag | | | +--> 0x02 L6-1 nnn cusec value (Integer) | +--> 0xA5 0x11 ctime tag | | | +--> 0x18 0x0F ttt ctime (KerberosTime) | +--> 0xA6 L7 subkey (EncryptionKey) | +--> 0xA7 L8 seq-number tag | | | +--> 0x02 L8-1 nnn seq-number (Integer) | +--> 0xA8 L9 authorization-data (AuthorizationData)
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
Authenticator : 0x62 LL 0x30 LL 0xA0 0x03 0x02 0x01 0x05 authenticator-vno 0xA1 LL 0x1B LL abcd crealm 0xA2 LL 0x30 LL abcd cname [0xA3 LL 0x30 LL abcd] cksum 0xA4 LL 0x02 LL nnn cusec 0xA5 0x11 0x18 0x0F ttt ctime [0xA6 LL 0x30 LL abcd] subkey [0xA7 LL 0x02 LL nnn] seq-number [0xA8 LL 0x30 LL abcd] authorization-data
org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.