Package org.opensaml.xacml.ctx

Examples of org.opensaml.xacml.ctx.ResponseType


        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


            Document doc = DOMUtils.createDocument();
            Element requestElement = OpenSAMLUtil.toDom(request, doc);
            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
View Full Code Here

        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

            Document doc = DOMUtils.createDocument();
            Element requestElement = OpenSAMLUtil.toDom(request, doc);
            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);
       
        String resource = requestBuilder.getResource(message);
View Full Code Here

    public Source evaluate(Source requestSource) {
        RequestType request = requestSourceToRequestType(requestSource);
        String role = getSubjectRole(request);
        DECISION decision = "manager".equals(role) ? DecisionType.DECISION.Permit : DecisionType.DECISION.Deny;       
        ResponseType response = createResponse(decision);
        return responseType2Source(response);
    }
View Full Code Here

        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

            Document doc = DOMUtils.createDocument();
            Element requestElement = OpenSAMLUtil.toDom(request, doc);
            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);
       
        List<String> resources = requestBuilder.getResources(message);
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ResponseType response = (ResponseType) parentXMLObject;
        if (childXMLObject instanceof ResultType) {
            response.setResult((ResultType) childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here

            Document doc = DOMUtils.createDocument();
            Element requestElement = OpenSAMLUtil.toDom(request, doc);
            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) {
View Full Code Here

        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

TOP

Related Classes of org.opensaml.xacml.ctx.ResponseType

Copyright © 2018 www.massapicom. 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.