// the security-mechanism:
this.lexer.SPorHT();
lexer.match(TokenTypes.ID);
Token type = lexer.getNextToken();
header.setSecurityMechanism(type.getTokenValue());
this.lexer.SPorHT();
char la = lexer.lookAhead(0);
if (la == '\n')
{
list.add(header);
return list;
}
else if (la == ';')
this.lexer.match(';');
this.lexer.SPorHT();
// The parameters:
try {
while (lexer.lookAhead(0) != '\n') {
this.parseParameter(header);
this.lexer.SPorHT();
char laInLoop = lexer.lookAhead(0);
if (laInLoop == '\n' || laInLoop == '\0')
break;
else if (laInLoop == ',')
{
list.add(header);
if (header.getClass().isInstance(new SecurityClient())) {
header = new SecurityClient();
} else if (header.getClass().isInstance(new SecurityServer())) {
header = new SecurityServer();
} else if (header.getClass().isInstance(new SecurityVerify())) {
header = new SecurityVerify();
}
this.lexer.match(',');
// the security-mechanism:
this.lexer.SPorHT();
lexer.match(TokenTypes.ID);
type = lexer.getNextToken();
header.setSecurityMechanism(type.getTokenValue());
}
this.lexer.SPorHT();
if (lexer.lookAhead(0) == ';')