gpt4 book ai didi

org.opensaml.xml.schema.XSBase64Binary.setValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 11:37:05 27 4
gpt4 key购买 nike

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

XSBase64Binary.setValue介绍

[英]Sets the base64-encoded binary value.
[中]设置base64编码的二进制值。

代码示例

代码示例来源:origin: org.opensaml/xmltooling

/** {@inheritDoc} */
  protected void processElementContent(XMLObject xmlObject, String elementContent) {
    XSBase64Binary xsBase64Binary = (XSBase64Binary) xmlObject;

    if (elementContent != null) {
      xsBase64Binary.setValue(elementContent.trim());
    }
  }
}

代码示例来源:origin: io.apigee.opensaml/xmltooling

/** {@inheritDoc} */
  protected void processElementContent(XMLObject xmlObject, String elementContent) {
    XSBase64Binary xsBase64Binary = (XSBase64Binary) xmlObject;

    if (elementContent != null) {
      xsBase64Binary.setValue(elementContent.trim());
    }
  }
}

代码示例来源:origin: be.fedict.eid-idp/eid-idp-common-saml2

@SuppressWarnings("unchecked")
private static Attribute getAttribute(String attributeName,
    byte[] attributeValue) {
  Attribute attribute = buildXMLObject(Attribute.class,
      Attribute.DEFAULT_ELEMENT_NAME);
  attribute.setName(attributeName);
  XMLObjectBuilder<XSBase64Binary> builder = Configuration
      .getBuilderFactory().getBuilder(XSBase64Binary.TYPE_NAME);
  XSBase64Binary xmlAttributeValue = builder.buildObject(
      AttributeValue.DEFAULT_ELEMENT_NAME, XSBase64Binary.TYPE_NAME);
  xmlAttributeValue.setValue(Base64.encodeBytes(attributeValue));
  attribute.getAttributeValues().add(xmlAttributeValue);
  return attribute;
}

代码示例来源:origin: be.e_contract.sts/sts-client-cxf

private void addAttribute(AttributeStatement attributeStatement,
    Attributes attribute, byte[] value) {
  if (null == value) {
    return;
  }
  XMLObjectBuilder<XSBase64Binary> builder = Configuration
      .getBuilderFactory().getBuilder(XSBase64Binary.TYPE_NAME);
  Attribute samlAttribute = buildXMLObject(Attribute.class,
      Attribute.DEFAULT_ELEMENT_NAME);
  samlAttribute.setName(attribute.getName());
  XSBase64Binary attributeValue = builder.buildObject(
      AttributeValue.DEFAULT_ELEMENT_NAME, XSBase64Binary.TYPE_NAME);
  attributeValue.setValue(Base64.encode(value));
  samlAttribute.getAttributeValues().add(attributeValue);
  attributeStatement.getAttributes().add(samlAttribute);
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

XSBase64Binary ppidValue = ppidValueBuilder.buildObject(
      AttributeValue.DEFAULT_ELEMENT_NAME, XSBase64Binary.TYPE_NAME);
  ppidValue.setValue(claim.getValue());
  attribute.getAttributeValues().add(ppidValue);
} else {

代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

XSBase64Binary ppidValue = ppidValueBuilder.buildObject(
      AttributeValue.DEFAULT_ELEMENT_NAME, XSBase64Binary.TYPE_NAME);
  ppidValue.setValue(claim.getValue());
  attribute.getAttributeValues().add(ppidValue);
} else {

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com