Methods Summary |
---|
public EncryptionTargetCreator | getTargetCreator()
return etCreator;
|
public void | process(com.sun.xml.ws.security.policy.EncryptedParts encryptParts, EncryptionPolicy.FeatureBinding binding)
if(SecurityPolicyUtil.isEncryptedPartsEmpty(encryptParts)){
if(!bodyEncrypted){
EncryptionTarget target = etCreator.newQNameEncryptionTarget(EncryptionTarget.BODY_QNAME);
target.setContentOnly(true);
binding.addTargetBinding(target);
bodyEncrypted = true;
}
}
Iterator tv = encryptParts.getTargets();
while(tv.hasNext()){
Header ht = (Header)tv.next();
if(!seenEncryptedParts(ht)){
EncryptionTarget target = etCreator.newQNameEncryptionTarget(new QName(ht.getURI(),ht.getLocalName()));
target.isSOAPHeadersOnly(true);
binding.addTargetBinding(target);
}
}
if(encryptParts.hasBody() && !bodyEncrypted){
EncryptionTarget target = etCreator.newQNameEncryptionTarget(EncryptionTarget.BODY_QNAME);
target.setContentOnly(true);
binding.addTargetBinding(target);
bodyEncrypted = true;
}
|
public void | process(com.sun.xml.ws.security.policy.EncryptedElements encryptedElements, EncryptionPolicy.FeatureBinding binding)
Iterator<String> eeItr = encryptedElements.getTargets();
while(eeItr.hasNext()){
String xpathTarget = eeItr.next();
EncryptionTarget target = etCreator.newXpathEncryptionTarget(xpathTarget);
binding.addTargetBinding(target);
}
|
public void | process(javax.xml.namespace.QName targetName, EncryptionPolicy.FeatureBinding binding)
EncryptionTarget target = etCreator.newQNameEncryptionTarget(targetName);
binding.addTargetBinding(target);
|
private boolean | seenEncryptedParts(com.sun.xml.ws.security.policy.Header header)
if(encryptedParts.contains(header)){
return true;
}
encryptedParts.add(header);
return false;
|