public class Xacml20Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_TYPE_PATIENT_ID |
static String |
ELEMENT_NAME_PATIENT_ID |
static JAXBContext |
JAXB_CONTEXT |
static QName |
QUERY_POLICY_ID_QNAME |
static QName |
QUERY_POLICY_SET_ID_QNAME |
static QName |
QUERY_REQUEST_QNAME |
static String |
SAML20_STATUS_SUCCESS |
| Constructor and Description |
|---|
Xacml20Utils() |
| Modifier and Type | Method and Description |
|---|---|
static ResponseType |
createXacmlQueryResponse(String status) |
static Optional<String> |
extractPatientId(XACMLPolicyQueryType request) |
static Optional<org.herasaf.xacml.core.policy.impl.IdReferenceType> |
extractPolicyId(XACMLPolicyQueryType request) |
static void |
initializeHerasaf(org.herasaf.xacml.core.simplePDP.initializers.api.Initializer... customInitializers)
Configures the HERAS-AF framework to use HL7v3 data types and functions
and provides the possibility to run user-defined custom initialization routines.
|
static Stream<org.herasaf.xacml.core.policy.Evaluatable> |
toStream(AddPolicyRequest request)
Creates a stream of all policies and policy sets contained in the given PPQ Add Policy request.
|
static Stream<org.herasaf.xacml.core.policy.impl.IdReferenceType> |
toStream(DeletePolicyRequest request)
Creates a stream of all policy and policy set IDs contained in the given PPQ Delete Policy request.
|
static Stream<org.herasaf.xacml.core.policy.Evaluatable> |
toStream(ResponseType response)
Creates a stream of all policies and policy sets contained in the given PPQ response object.
|
static Stream<org.herasaf.xacml.core.policy.Evaluatable> |
toStream(UpdatePolicyRequest request)
Creates a stream of all policies and policy sets contained in the given PPQ Update Policy request.
|
public static final String SAML20_STATUS_SUCCESS
public static final String ATTRIBUTE_TYPE_PATIENT_ID
public static final String ELEMENT_NAME_PATIENT_ID
public static final QName QUERY_REQUEST_QNAME
public static final QName QUERY_POLICY_ID_QNAME
public static final QName QUERY_POLICY_SET_ID_QNAME
public static final JAXBContext JAXB_CONTEXT
public static void initializeHerasaf(org.herasaf.xacml.core.simplePDP.initializers.api.Initializer... customInitializers)
customInitializers - additional optional user-defined custom initializers.public static ResponseType createXacmlQueryResponse(String status)
public static Stream<org.herasaf.xacml.core.policy.Evaluatable> toStream(ResponseType response)
response - PPQ response.null.public static Stream<org.herasaf.xacml.core.policy.Evaluatable> toStream(AddPolicyRequest request)
request - PPQ Add Policy request.null.public static Stream<org.herasaf.xacml.core.policy.Evaluatable> toStream(UpdatePolicyRequest request)
request - PPQ Update Policy request.null.public static Stream<org.herasaf.xacml.core.policy.impl.IdReferenceType> toStream(DeletePolicyRequest request)
request - PPQ Delete Policy request.null.public static Optional<String> extractPatientId(XACMLPolicyQueryType request)
public static Optional<org.herasaf.xacml.core.policy.impl.IdReferenceType> extractPolicyId(XACMLPolicyQueryType request)
Copyright © 2020 Open eHealth Foundation. All rights reserved.