optContext.getSecurityHeader();
((NamespaceContextEx)optContext.getNamespaceContext()).addWSS11NS();
if(!it.hasNext()){
// Insert a SignatureConfirmation element with no Value attribute
String id = optContext.generateID();
SignatureConfirmation scHeader = new SignatureConfirmation(id, optContext.getSOAPVersion());
secHeader.add(scHeader);
optContext.getSignatureConfirmationIds().add(id);
}
while(it.hasNext()){
byte[] signValue = (byte[])it.next();
String id = optContext.generateID();
SignatureConfirmation scHeader = new SignatureConfirmation(id, optContext.getSOAPVersion());
scHeader.setValue(signValue);
secHeader.add(scHeader);
optContext.getSignatureConfirmationIds().add(id);
}
} else{
SecurableSoapMessage secureMessage = context.getSecurableSoapMessage();