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


Java XACMLAuthzDecisionQueryType类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:XACMLAuthzDecisionQueryTypeUnmarshaller.java

示例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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:XACMLAuthzDecisionQueryTypeUnmarshaller.java

示例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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:22,代码来源:XACMLAuthzDecisionQueryTypeMarshaller.java

示例4: buildObject

import org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType; //导入依赖的package包/类
/** {@inheritDoc} */
public XACMLAuthzDecisionQueryType buildObject() {
    return null;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:XACMLAuthzDecisionQueryTypeImplBuilder.java


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