SecurityContextToken sct = new SecurityContextToken(message, context, (HashMap) currentParentNS);
context.getSecurityContext().getProcessedSecurityHeaders().add(sct);
return sct;
}
case SIGNATURE_ELEMENT:{
Signature sig = new Signature(context,currentParentNS,creator,true);
sig.process(message);
if (sig.getReferences().size() == 0){
context.getSecurityContext().getProcessedSecurityHeaders().add(sig);
}
context.getInferredSecurityPolicy().append(sig.getPolicy());
return sig;
}
case SAML_ASSERTION_ELEMEMENT :{
SAMLAssertion samlAssertion = new SAMLAssertion(message,context,null,(HashMap) currentParentNS);
context.getSecurityContext().getProcessedSecurityHeaders().add(samlAssertion);