本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.unmarshallToAttributeMap方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.unmarshallToAttributeMap方法的具体用法?Java XMLHelper.unmarshallToAttributeMap怎么用?Java XMLHelper.unmarshallToAttributeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opensaml.xml.util.XMLHelper
的用法示例。
在下文中一共展示了XMLHelper.unmarshallToAttributeMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Policy policy = (Policy) xmlObject;
QName nameQName = new QName(Policy.NAME_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (nameQName.equals(attribQName)) {
policy.setName(attribute.getValue());
} else if (Policy.WSU_ID_ATTR_NAME.equals(attribQName)) {
policy.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(policy.getUnknownAttributes(), attribute);
}
}
示例2: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
PolicyReference pr = (PolicyReference) xmlObject;
QName uriName = new QName(PolicyReference.URI_ATTRIB_NAME);
QName digestName = new QName(PolicyReference.DIGEST_ATTRIB_NAME);
QName digestAlgorithmName = new QName(PolicyReference.DIGEST_ALGORITHM_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix());
if (uriName.equals(attribQName)) {
pr.setURI(attribute.getValue());
} else if (digestName.equals(attribQName)) {
pr.setDigest(attribute.getValue());
} else if (digestAlgorithmName.equals(attribQName)) {
pr.setDigestAlgorithm(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(pr.getUnknownAttributes(), attribute);
}
}
示例3: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) xmlObject;
if (RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
rstr.setContext(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(rstr.getUnknownAttributes(), attribute);
}
}
示例4: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributedString attributedString = (AttributedString) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (AttributedString.WSU_ID_ATTR_NAME.equals(attribQName)) {
attributedString.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(attributedString.getUnknownAttributes(), attribute);
}
}
示例5: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Embedded embedded = (Embedded) xmlObject;
String attrName = attribute.getLocalName();
if (Embedded.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
embedded.setValueType(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(embedded.getUnknownAttributes(), attribute);
}
}
示例6: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Reference reference = (Reference) xmlObject;
String attrName = attribute.getLocalName();
if (Reference.URI_ATTRIB_NAME.equals(attrName)) {
reference.setURI(attribute.getValue());
} else if (Reference.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
reference.setValueType(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(reference.getUnknownAttributes(), attribute);
}
}
示例7: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
RelatesTo relatesTo = (RelatesTo) xmlObject;
if (RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
relatesTo.setRelationshipType(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
} else {
XMLHelper.unmarshallToAttributeMap(relatesTo.getUnknownAttributes(), attribute);
}
}
示例8: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Timestamp timestamp = (Timestamp) xmlObject;
QName attrName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (Timestamp.WSU_ID_ATTR_NAME.equals(attrName)) {
timestamp.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(timestamp.getUnknownAttributes(), attribute);
}
}
示例9: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
UsernameToken token = (UsernameToken) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (UsernameToken.WSU_ID_ATTR_NAME.equals(attribQName)) {
token.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(token.getUnknownAttributes(), attribute);
}
}
示例10: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Claims claims = (Claims) xmlObject;
if (Claims.DIALECT_ATTRIB_NAME.equals(attribute.getLocalName())) {
claims.setDialect(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(claims.getUnknownAttributes(), attribute);
}
}
示例11: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
if (RequestSecurityToken.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
rst.setContext(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(rst.getUnknownAttributes(), attribute);
}
}
示例12: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AppliesTo at = (AppliesTo) xmlObject;
XMLHelper.unmarshallToAttributeMap(at.getUnknownAttributes(), attribute);
}
示例13: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
PolicyAttachment pa = (PolicyAttachment) xmlObject;
XMLHelper.unmarshallToAttributeMap(pa.getUnknownAttributes(), attribute);
}
示例14: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Security security = (Security) xmlObject;
XMLHelper.unmarshallToAttributeMap(security.getUnknownAttributes(), attribute);
}
示例15: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributedQName attributedQName = (AttributedQName) xmlObject;
XMLHelper.unmarshallToAttributeMap(attributedQName.getUnknownAttributes(), attribute);
}