Package org.opensaml.xacml.ctx

Examples of org.opensaml.xacml.ctx.StatusType


        }
       
        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);
       
View Full Code Here


        }
       
        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);
       
View Full Code Here

        DecisionType decisionType = decisionTypeBuilder.buildObject();
        decisionType.setDecision(decision);
        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

        super(targetNamespaceURI, targetLocalName);
    }

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

        if (childObject instanceof StatusCodeType) {
            status.setStatusCode((StatusCodeType) childObject);
        } else  if (childObject instanceof StatusMessageType) {
            status.setStatusMessage((StatusMessageType) childObject);
        } else if (childObject instanceof StatusDetailType) {
            status.setStatusDetail((StatusDetailType) childObject);
        } else {
            super.processChildElement(parentObject, childObject);
        }
    }
View Full Code Here

        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

        }
       
        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);
       
View Full Code Here

        }
       
        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);
       
View Full Code Here

TOP

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

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.