本文整理了Java中org.apache.ws.security.WSEncryptionPart.getNamespace()
方法的一些代码示例,展示了WSEncryptionPart.getNamespace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSEncryptionPart.getNamespace()
方法的具体详情如下:
包路径:org.apache.ws.security.WSEncryptionPart
类名称:WSEncryptionPart
方法名:getNamespace
暂无
代码示例来源:origin: org.apache.rampart/rampart-core
if (signedPart.getNamespace() == null || signedPart.getName() == null) {
continue;
if (encryptedPart.getNamespace() == null || encryptedPart.getName() == null) {
continue;
signedPart.getNamespace().equals(encryptedPart.getNamespace())) {
signedPart.getNamespace(),
signedPart.getEncModifier(), signedPart.getXpath()));
代码示例来源:origin: org.apache.ws.security/wss4j
/**
* Find the DOM Element in the SOAP Envelope that is referenced by the
* WSEncryptionPart argument. The "Id" is used before the Element localname/namespace.
*
* @param part The WSEncryptionPart object corresponding to the DOM Element(s) we want
* @param callbackLookup The CallbackLookup object used to find Elements
* @param doc The owning document
* @return the DOM Element in the SOAP Envelope that is found
*/
public static List<Element> findElements(
WSEncryptionPart part, CallbackLookup callbackLookup, Document doc
) throws WSSecurityException {
// See if the DOM Element is stored in the WSEncryptionPart first
if (part.getElement() != null) {
return Collections.singletonList(part.getElement());
}
// Next try to find the Element via its wsu:Id
String id = part.getId();
if (id != null) {
Element foundElement = callbackLookup.getElement(id, null, false);
return Collections.singletonList(foundElement);
}
// Otherwise just lookup all elements with the localname/namespace
return callbackLookup.getElements(part.getName(), part.getNamespace());
}
代码示例来源:origin: org.apache.rampart/rampart-core
envelope, wsep.getName(), wsep.getNamespace());
throw new RampartException(msg, new String[]{wsep.getNamespace() + ":" + wsep.getName()});
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
/**
* Find the DOM Element in the SOAP Envelope that is referenced by the
* WSEncryptionPart argument. The "Id" is used before the Element localname/namespace.
*
* @param part The WSEncryptionPart object corresponding to the DOM Element(s) we want
* @param callbackLookup The CallbackLookup object used to find Elements
* @param doc The owning document
* @return the DOM Element in the SOAP Envelope that is found
*/
public static List<Element> findElements(
WSEncryptionPart part, CallbackLookup callbackLookup, Document doc
) throws WSSecurityException {
// See if the DOM Element is stored in the WSEncryptionPart first
if (part.getElement() != null) {
return Collections.singletonList(part.getElement());
}
// Next try to find the Element via its wsu:Id
String id = part.getId();
if (id != null) {
Element foundElement = callbackLookup.getElement(id, null, false);
return Collections.singletonList(foundElement);
}
// Otherwise just lookup all elements with the localname/namespace
return callbackLookup.getElements(part.getName(), part.getNamespace());
}
代码示例来源:origin: org.apache.rampart/rampart-core
if (part.getName() == null) {
ArrayList headerList = header.getHeaderBlocksWithNSURI(part.getNamespace());
part.getNamespace(), "Content"));
} else {
part.getNamespace(), "Element"));
OMElement e = header.getFirstChildWithName(new QName(part.getNamespace(), part.getName()));
if (e != null) {
if (!found.contains(e)) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
WSSecurityException.FAILURE,
"noEncElement",
new Object[] {"{" + encPart.getNamespace() + "}" + encPart.getName()}
);
代码示例来源:origin: org.apache.ws.security/wss4j
WSSecurityException.FAILURE,
"noEncElement",
new Object[] {"{" + encPart.getNamespace() + "}" + encPart.getName()}
);
代码示例来源:origin: org.apache.rampart/rampart-core
WSConstants.SIG_NS.equals(encryptedPart.getNamespace()))
|| encryptedPart.getEncModifier().equals(WSConstants.ELEM_HEADER)) {
if (!isRefIdPresent(encrRefs, new QName(encryptedPart.getNamespace(), encryptedPart.getName()))) {
throw new RampartException("encryptedPartMissing",
new String[]{encryptedPart.getNamespace() + ":" + encryptedPart.getName()});
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
referenceList.add(reference);
} else {
String nmSpace = encPart.getNamespace();
List<Element> elementsToSign = null;
if (element != null) {
代码示例来源:origin: org.apache.ws.security/wss4j
referenceList.add(reference);
} else {
String nmSpace = encPart.getNamespace();
List<Element> elementsToSign = null;
if (element != null) {
代码示例来源:origin: org.apache.ws.security/wss4j
boolean signTimestamp = false;
for (WSEncryptionPart encP : reqData.getSignatureParts()) {
if (WSConstants.WSU_NS.equals(encP.getNamespace())
&& "Timestamp".equals(encP.getName())) {
signTimestamp = true;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
boolean signTimestamp = false;
for (WSEncryptionPart encP : reqData.getSignatureParts()) {
if (WSConstants.WSU_NS.equals(encP.getNamespace())
&& "Timestamp".equals(encP.getName())) {
signTimestamp = true;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
part.setId(wsSign.getSecurityTokenReferenceURI());
} else if (reqData.isAppendSignatureAfterTimestamp()
&& WSConstants.WSU_NS.equals(part.getNamespace())
&& "Timestamp".equals(part.getName())) {
int originalSignatureActionIndex =
} else if (WSConstants.WSSE_NS.equals(part.getNamespace())
&& WSConstants.BINARY_TOKEN_LN.equals(part.getName())) {
signBST = true;
代码示例来源:origin: org.apache.ws.security/wss4j
part.setId(wsSign.getSecurityTokenReferenceURI());
} else if (reqData.isAppendSignatureAfterTimestamp()
&& WSConstants.WSU_NS.equals(part.getNamespace())
&& "Timestamp".equals(part.getName())) {
int originalSignatureActionIndex =
} else if (WSConstants.WSSE_NS.equals(part.getNamespace())
&& WSConstants.BINARY_TOKEN_LN.equals(part.getName())) {
signBST = true;
内容来源于网络,如有侵权,请联系作者删除!