Examples of ResultType


Examples of org.opensaml.xacml.ctx.ResultType

        super(targetNamespaceURI, targetLocalName);
    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {
        ResultType result = (ResultType) samlElement;

        if (result.getResourceId() != null) {
            domElement.setAttributeNS(null, ResultType.RESOURCE_ID_ATTTRIB_NAME, result.getResourceId());
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResultType

        super(targetNamespaceURI, targetLocalName);
    }

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ResultType result = (ResultType) xmlObject;
        if (attribute.getLocalName().equals(ResultType.RESOURCE_ID_ATTTRIB_NAME)) {
            result.setResourceId(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResultType

        }
    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
        ResultType result = (ResultType) parentObject;

        if (childObject instanceof ObligationsType) {
            result.setObligations((ObligationsType) childObject);
        } else if (childObject instanceof StatusType) {
            result.setStatus((StatusType) childObject);
        } else if (childObject instanceof DecisionType) {
            result.setDecision((DecisionType) childObject);
        } else {
            super.processChildElement(parentObject, childObject);
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResultType

            LOG.log(Level.FINE, DOM2Writer.nodeToString(requestElement));
        }
       
        ResponseType response = performRequest(request, message);
       
        ResultType result = response.getResult();
       
        // Handle any Obligations returned by the PDP
        handleObligations(request, principal, message, result);
       
        if (result == null) {
            return false;
        }

        DECISION decision = result.getDecision() != null ? result.getDecision().getDecision() : DECISION.Deny;
        String code = "";
        String statusMessage = "";
        if (result.getStatus() != null) {
            StatusType status = result.getStatus();
            code = status.getStatusCode() != null ? status.getStatusCode().getValue() : "";
            statusMessage = status.getStatusMessage() != null ? status.getStatusMessage().getValue() : "";
        }
        LOG.fine("XACML authorization result: " + decision + ", code: " + code + ", message: " + statusMessage);
        return decision == DECISION.Permit;
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResultType

            decisionType.setDecision(DecisionType.DECISION.Permit);
        } else {
            decisionType.setDecision(DecisionType.DECISION.Deny);
        }
       
        ResultType result = resultTypeBuilder.buildObject();
        result.setDecision(decisionType);
       
        StatusType status = statusTypeBuilder.buildObject();
        StatusCodeType statusCode = statusCodeTypeBuilder.buildObject();
        statusCode.setValue("urn:oasis:names:tc:xacml:1.0:status:ok");
        status.setStatusCode(statusCode);
        result.setStatus(status);
       
        ResponseType response = responseTypeBuilder.buildObject();
        response.setResult(result);
       
        return response;
View Full Code Here

Examples of org.opensaml.xacml.ctx.ResultType

            decisionType.setDecision(DecisionType.DECISION.Permit);
        } else {
            decisionType.setDecision(DecisionType.DECISION.Deny);
        }
       
        ResultType result = resultTypeBuilder.buildObject();
        result.setDecision(decisionType);
       
        StatusType status = statusTypeBuilder.buildObject();
        StatusCodeType statusCode = statusCodeTypeBuilder.buildObject();
        statusCode.setValue("urn:oasis:names:tc:xacml:1.0:status:ok");
        status.setStatusCode(statusCode);
        result.setStatus(status);
       
        ResponseType response = responseTypeBuilder.buildObject();
        response.setResult(result);
       
        return responseType2Source(response);
View Full Code Here

Examples of org.wso2.xkms2.ResultType

        if (responseMechanisms == null || responseMechanisms.length == 0) {
            // Sync process
            XKMSServiceExecutor xkmsServiceExecutor = XKMSServiceExecutorManager
                    .get(qName.getLocalPart());
            ResultType result = xkmsServiceExecutor.execute(requestData, inMsgCtx);
            return getAsOMElement(result, fac);

        }

        throw new UnsupportedOperationException("TODO ");
View Full Code Here

Examples of org.wso2.xkms2.ResultType

    public ResultType execute(XKMSRequestData data,
            MessageContext messageContext) throws XKMSException, AxisFault {

        createXKMSServerCrypto(data);
        ResultType result = crypto.process(data);
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.