private void ParseAuthorityKeyIdentifierExtension(string formattedData)
{
m_keyId = null;
m_serialNumber = null;
string[] pairedData = formattedData.Split(',');
// find desired keys in formatted data
int position = 1;
foreach (string pair in pairedData)
{
string[] splitPair = pair.Trim().Split(new Char[] { '=', ':' }, 2);
if (splitPair.Length == 2)
{
splitPair[0] = splitPair[0].ToLower();
if (splitPair[0] == s_KeyIdentifier && position == 1)
{
m_keyId = TrimHexString(splitPair[1]);
}
else if (splitPair[0].EndsWith(s_SerialNumber) && position == pairedData.Length)
{
m_serialNumber = TrimHexString(splitPair[1]);
}
}
position++;
}
}