org.apache.ws.security.WSEncryptionPart.setId()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.apache.ws.security.WSEncryptionPart.setId()方法的一些代码示例,展示了WSEncryptionPart.setId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSEncryptionPart.setId()方法的具体详情如下:
包路径:org.apache.ws.security.WSEncryptionPart
类名称:WSEncryptionPart
方法名:setId

WSEncryptionPart.setId介绍

[英]Set the id
[中]设置id

代码示例

代码示例来源:origin: org.apache.rampart/rampart-core

/**
 * Creates an encryption part. Could be a part or could be an element pointed through xpath expression.
 * @param name Name of the element.
 * @param id The id of the element
 * @param namespace Namespace of the element.
 * @param modifier Modifier "Content" or "Element"
 * @param xPath The xPath expression
 * @return A WSEncryptionPart
 */
public static WSEncryptionPart createEncryptionPart(String name, String id,
                           String namespace, String modifier,String xPath) {
  // The part name must not be null !!
  assert name != null;
  WSEncryptionPart wsEncryptionPart = new WSEncryptionPart(name, namespace, modifier);
  wsEncryptionPart.setId(id);
  wsEncryptionPart.setXpath(xPath);
  return wsEncryptionPart;
}

代码示例来源:origin: org.apache.ws.security/wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);

代码示例来源:origin: org.apache.ws.security/wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);

代码示例来源:origin: org.apache.ws.security/wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);
WSEncryptionPart encP =
  new WSEncryptionPart("STRTransform", soapNamespace, "Content");
encP.setId(secRefID);
parts.add(encP);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

for (WSEncryptionPart part : parts) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(strUri);
WSEncryptionPart encP =
  new WSEncryptionPart("STRTransform", soapNamespace, "Content");
encP.setId(secRefID);
parts.add(encP);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

for (WSEncryptionPart part : reqData.getSignatureParts()) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(wsSign.getSecurityTokenReferenceURI());
  } else if (reqData.isAppendSignatureAfterTimestamp()
      && WSConstants.WSU_NS.equals(part.getNamespace())

代码示例来源:origin: org.apache.ws.security/wss4j

for (WSEncryptionPart part : reqData.getSignatureParts()) {
  if ("STRTransform".equals(part.getName()) && part.getId() == null) {
    part.setId(wsSign.getSecurityTokenReferenceURI());
  } else if (reqData.isAppendSignatureAfterTimestamp()
      && WSConstants.WSU_NS.equals(part.getNamespace())

相关文章