getChecksumBytes() 方法
public byte[] getChecksumBytes(byte[] cksumData, byte[] cksumType){
byte[] cksumBytes = getTagAndLengthBytes (
ASN1DataTypes.CONTEXT_SPECIFIC, 3,
getSequenceBytes (
concatenateBytes (
getTagAndLengthBytes(ASN1DataTypes.CONTEXT_SPECIFIC,
0,
cksumType
),
getTagAndLengthBytes(
ASN1DataTypes.CONTEXT_SPECIFIC, 1,
getOctetStringBytes(cksumData)
)
)
)
);
return cksumBytes;
}//getChecksumBytes()
喘Kerberos葎J2ME哘喘殻會貧迄?及3何蛍 - 秀羨嚥窮徨咢佩議芦畠宥佚?和?(4)
扮寂:2011-08-05 IBM Faheem Khan
getAuthenticationHeader()
壓 云狼双議及匯鐙猟嫗 嶄議“捲暦同象萩箔”匯准嶄?初府狛 KRB-AP-REQ 潤更?匆各葎範屬遊? 淫廾阻 Kerberos 同象。緩翌?範屬遊珊淫廾阻 authenticator 忖粁?万燕苧人薩字頁倦嫺燐阻 氏三 賜宀 徨氏三 畜埒。
泌 及匯鐙猟嫗議夕 5 侭幣?範屬遊喇励倖忖粁怏撹?軸 pvno、msg-type、ap-options、ticket 才 authenticator。
賠汽 19 議 getAuthenticationHeader() 圭隈幟匯伏撹宸励倖忖粁?隼朔參屎鳩議乏會繍光倖忖粁堪 俊軟栖參侘撹匯倖頼屁議範屬遊。
賠汽 19. getAuthenticationHeader() 圭隈
public byte[] getAuthenticationHeader( byte[] ticketContent,
String clientRealm,
String clientName,
byte[] checksumBytes,
byte[] encryptionKey,
int sequenceNumber
)
{
byte[] authenticator = null;
byte[] vno = getTagAndLengthBytes (
ASN1DataTypes.CONTEXT_SPECIFIC,
0, getIntegerBytes(5)
);
byte[] ap_req_msg_type = getTagAndLengthBytes(
ASN1DataTypes.CONTEXT_SPECIFIC,
1, getIntegerBytes(14)
);
byte[] ap_options = getTagAndLengthBytes(
ASN1DataTypes.CONTEXT_SPECIFIC,
2, getBitStringBytes(new byte[5])
);
byte[] ticket = getTagAndLengthBytes(
ASN1DataTypes.CONTEXT_SPECIFIC,
3, ticketContent
);
byte[] realmName = getTagAndLengthBytes(ASN1DataTypes.CONTEXT_SPECIFIC,
1, getGeneralStringBytes(clientRealm)
);
byte[] generalStringSequence = getSequenceBytes(
|