本文整理汇总了Java中org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType类的典型用法代码示例。如果您正苦于以下问题:Java XACMLAuthzDecisionQueryType类的具体用法?Java XACMLAuthzDecisionQueryType怎么用?Java XACMLAuthzDecisionQueryType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XACMLAuthzDecisionQueryType类属于org.opensaml.xacml.profile.saml包,在下文中一共展示了XACMLAuthzDecisionQueryType类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processChildElement
import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
XACMLAuthzDecisionQueryType xacmlauthzdecisionquery = (XACMLAuthzDecisionQueryType) parentObject;
if (childObject instanceof RequestType) {
xacmlauthzdecisionquery.setRequest((RequestType) childObject);
} else if (childObject instanceof PolicyType) {
xacmlauthzdecisionquery.getPolicies().add((PolicyType) childObject);
} else if (childObject instanceof PolicySetType) {
xacmlauthzdecisionquery.getPolicySets().add((PolicySetType) childObject);
} else if (childObject instanceof ReferencedPoliciesType) {
xacmlauthzdecisionquery.setReferencedPolicies((ReferencedPoliciesType) childObject);
} else {
super.processChildElement(parentObject, childObject);
}
}
示例2: processAttribute
import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
XACMLAuthzDecisionQueryType authzDS = (XACMLAuthzDecisionQueryType) samlObject;
if (attribute.getLocalName().equals(XACMLAuthzDecisionQueryType.INPUTCONTEXTONLY_ATTRIB_NAME)) {
authzDS.setInputContextOnly(XSBooleanValue.valueOf(attribute.getValue()));
}
if (attribute.getLocalName().equals(XACMLAuthzDecisionQueryType.RETURNCONTEXT_ATTRIB_NAME)) {
authzDS.setReturnContext(XSBooleanValue.valueOf(attribute.getValue()));
}
if (attribute.getLocalName().equals(XACMLAuthzDecisionQueryType.COMBINEPOLICIES_ATTRIB_NAME)) {
authzDS.setCombinePolicies(XSBooleanValue.valueOf(attribute.getValue()));
}
super.processAttribute(samlObject, attribute);
}
示例3: marshallAttributes
import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType; //导入依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
XACMLAuthzDecisionQueryType query = (XACMLAuthzDecisionQueryType) samlObject;
if (query.getInputContextOnlyXSBooleanValue() != null) {
domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.INPUTCONTEXTONLY_ATTRIB_NAME, query
.getInputContextOnlyXSBooleanValue().toString());
}
if (query.getReturnContextXSBooleanValue() != null) {
domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.RETURNCONTEXT_ATTRIB_NAME, query
.getReturnContextXSBooleanValue().toString());
}
if (query.getCombinePoliciesXSBooleanValue() != null) {
domElement.setAttributeNS(null, XACMLAuthzDecisionQueryType.COMBINEPOLICIES_ATTRIB_NAME, query
.getCombinePoliciesXSBooleanValue().toString());
}
super.marshallAttributes(samlObject, domElement);
}
示例4: buildObject
import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType; //导入依赖的package包/类
/** {@inheritDoc} */
public XACMLAuthzDecisionQueryType buildObject() {
return null;
}