作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.opensaml.xml.schema.XSBase64Binary.setValue()
方法的一些代码示例,展示了XSBase64Binary.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSBase64Binary.setValue()
方法的具体详情如下:
包路径:org.opensaml.xml.schema.XSBase64Binary
类名称: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 {
我是一名优秀的程序员,十分优秀!