当前位置: 首页>>代码示例>>Java>>正文


Java XMLHelper.marshallAttribute方法代码示例

本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.marshallAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.marshallAttribute方法的具体用法?Java XMLHelper.marshallAttribute怎么用?Java XMLHelper.marshallAttribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opensaml.xml.util.XMLHelper的用法示例。


在下文中一共展示了XMLHelper.marshallAttribute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
    SessionKey key = (SessionKey) samlObject;

    if (key.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(SessionKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    
    if (key.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(SessionKey.SOAP11_ACTOR_ATTR_NAME, 
                key.getSOAP11Actor(), domElement, false);
    }
    
    if (key.getAlgorithm() != null) {
        domElement.setAttributeNS(null, SessionKey.ALGORITHM_ATTRIB_NAME, key.getAlgorithm());
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:SessionKeyMarshaller.java

示例2: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    ChannelBindings cb = (ChannelBindings) xmlObject;

    if (cb.getType() != null) {
        domElement.setAttributeNS(null, ChannelBindings.TYPE_ATTRIB_NAME, cb.getType());
    }

    if (cb.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(ChannelBindings.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                cb.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    
    if (cb.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(ChannelBindings.SOAP11_ACTOR_ATTR_NAME, 
                cb.getSOAP11Actor(), domElement, false);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:ChannelBindingsMarshaller.java

示例3: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
    SubjectConfirmation sc = (SubjectConfirmation) samlObject;

    if (sc.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(SubjectConfirmation.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                sc.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    
    if (sc.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(SubjectConfirmation.SOAP11_ACTOR_ATTR_NAME, 
                sc.getSOAP11Actor(), domElement, false);
    }
    
    if (sc.getMethod() != null) {
        domElement.setAttributeNS(null, SubjectConfirmation.METHOD_ATTRIB_NAME, sc.getMethod());
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:SubjectConfirmationMarshaller.java

示例4: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Request request = (Request) xmlObject;
    
    if (request.getProviderName() != null) {
        domElement.setAttributeNS(null, Request.PROVIDER_NAME_ATTRIB_NAME, request.getProviderName());
    }
    if (request.isPassiveXSBoolean() != null) {
        domElement.setAttributeNS(null, Request.IS_PASSIVE_NAME_ATTRIB_NAME,
                request.isPassiveXSBoolean().toString());
    }
    if (request.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(Request.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                request.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    if (request.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(Request.SOAP11_ACTOR_ATTR_NAME, 
                request.getSOAP11Actor(), domElement, false);
    }
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:22,代码来源:RequestMarshaller.java

示例5: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Response response = (Response) xmlObject;
    
    if (response.getAssertionConsumerServiceURL() != null) {
        domElement.setAttributeNS(null, Response.ASSERTION_CONSUMER_SERVICE_URL_ATTRIB_NAME,
                response.getAssertionConsumerServiceURL());
    }
    if (response.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(Response.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                response.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    if (response.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(Response.SOAP11_ACTOR_ATTR_NAME, 
                response.getSOAP11Actor(), domElement, false);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:18,代码来源:ResponseMarshaller.java

示例6: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Policy policy = (Policy) xmlObject;
    
    if (policy.getName() != null) {
        domElement.setAttributeNS(null, Policy.NAME_ATTRIB_NAME, policy.getName());
    }
    
    if (policy.getWSUId() != null) {
        XMLHelper.marshallAttribute(IdBearing.WSU_ID_ATTR_NAME, policy.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(policy.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:PolicyMarshaller.java

示例7: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedURI attributedURI = (AttributedURI) xmlObject;
    
    if (!DatatypeHelper.isEmpty(attributedURI.getWSUId())) {
        XMLHelper.marshallAttribute(AttributedURI.WSU_ID_ATTR_NAME, attributedURI.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(attributedURI.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AttributedURIMarshaller.java

示例8: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Timestamp timestamp = (Timestamp) xmlObject;
    
    if (!DatatypeHelper.isEmpty(timestamp.getWSUId())) {
        XMLHelper.marshallAttribute(Timestamp.WSU_ID_ATTR_NAME, timestamp.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(timestamp.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:TimestampMarshaller.java

示例9: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
    
    if (!DatatypeHelper.isEmpty(dateTime.getWSUId())) {
        XMLHelper.marshallAttribute(AttributedDateTime.WSU_ID_ATTR_NAME, dateTime.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(dateTime.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AttributedDateTimeMarshaller.java

示例10: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    EncryptedHeader eh = (EncryptedHeader) xmlObject;
    
    if (eh.getWSUId() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.WSU_ID_ATTR_NAME, 
                eh.getWSUId(), domElement, true);
    }
    if (eh.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                eh.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    if (eh.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.SOAP11_ACTOR_ATTR_NAME, 
                eh.getSOAP11Actor(), domElement, false);
    }
    if (eh.isSOAP12MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.SOAP12_MUST_UNDERSTAND_ATTR_NAME, 
                eh.isSOAP12MustUnderstandXSBoolean().toString(), domElement, false);
    }
    if (eh.getSOAP12Role() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.SOAP12_ROLE_ATTR_NAME,
                eh.getSOAP12Role(), domElement, false);
    }
    if (eh.isSOAP12RelayXSBoolean() != null) {
        XMLHelper.marshallAttribute(EncryptedHeader.SOAP12_RELAY_ATTR_NAME, 
                eh.isSOAP12RelayXSBoolean().toString(), domElement, false);
    }
    
    super.marshallAttributes(xmlObject, domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:32,代码来源:EncryptedHeaderMarshaller.java

示例11: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    UsernameToken usernameToken = (UsernameToken) xmlObject;
    
    if (!DatatypeHelper.isEmpty(usernameToken.getWSUId())) {
        XMLHelper.marshallAttribute(UsernameToken.WSU_ID_ATTR_NAME, usernameToken.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(usernameToken.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:UsernameTokenMarshaller.java

示例12: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedString attributedString = (AttributedString) xmlObject;
    
    if (!DatatypeHelper.isEmpty(attributedString.getWSUId())) {
        XMLHelper.marshallAttribute(AttributedString.WSU_ID_ATTR_NAME, attributedString.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(attributedString.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AttributedStringMarshaller.java

示例13: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    SecurityTokenReference str = (SecurityTokenReference) xmlObject;
    
    if (!DatatypeHelper.isEmpty(str.getWSUId())) {
        XMLHelper.marshallAttribute(SecurityTokenReference.WSU_ID_ATTR_NAME, str.getWSUId(), domElement, true);
    }
    
    List<String> usages = str.getWSSEUsages();
    if (usages != null && ! usages.isEmpty()) {
        XMLHelper.marshallAttribute(SecurityTokenReference.WSSE_USAGE_ATTR_NAME, usages, domElement, false);
    }
    
    XMLHelper.marshallAttributeMap(str.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:SecurityTokenReferenceMarshaller.java

示例14: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
    
    if (!DatatypeHelper.isEmpty(sc.getWSUId())) {
        XMLHelper.marshallAttribute(SignatureConfirmation.WSU_ID_ATTR_NAME, sc.getWSUId(), domElement, true);
    }
    if (!DatatypeHelper.isEmpty(sc.getValue())) {
        domElement.setAttributeNS(null, SignatureConfirmation.VALUE_ATTRIB_NAME, sc.getValue());
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:SignatureConfirmationMarshaller.java

示例15: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
    GeneratedKey key = (GeneratedKey) samlObject;

    if (key.isSOAP11MustUnderstandXSBoolean() != null) {
        XMLHelper.marshallAttribute(GeneratedKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME, 
                key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
    }
    
    if (key.getSOAP11Actor() != null) {
        XMLHelper.marshallAttribute(GeneratedKey.SOAP11_ACTOR_ATTR_NAME, 
                key.getSOAP11Actor(), domElement, false);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:GeneratedKeyMarshaller.java


注:本文中的org.opensaml.xml.util.XMLHelper.marshallAttribute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。