iya-sts
    Preparing search index...

    Variable parsePolicy

    parsePolicy: (
        xml: any,
    ) =>
        | {
            advice: {
                assignments: {
                    attributeId: any;
                    category: any;
                    expression: any;
                    issuer: any;
                }[];
                id: any;
                on: any;
            }[];
            combinerParameters: any[];
            combiningAlgId: any;
            description: string;
            id: any;
            kind: string;
            maxDelegationDepth: any;
            obligations: {
                assignments: {
                    attributeId: any;
                    category: any;
                    expression: any;
                    issuer: any;
                }[];
                id: any;
                on: any;
            }[];
            ruleCombinerParameters: {
                parameters: { name: any; value: any }[];
                ref: any;
            }[];
            rules: {
                advice: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                condition: any;
                description: string;
                effect: any;
                id: any;
                obligations: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                target: { anyOf: { allOf: { matches: (...)[] }[] }[] };
            }[];
            target: {
                anyOf: {
                    allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                }[];
            };
            variables: {};
            version: any;
            xpathVersion: string;
        }
        | {
            advice: {
                assignments: {
                    attributeId: any;
                    category: any;
                    expression: any;
                    issuer: any;
                }[];
                id: any;
                on: any;
            }[];
            children: any[];
            combinerParameters: any[];
            combiningAlgId: any;
            description: string;
            id: any;
            kind: string;
            maxDelegationDepth: any;
            obligations: {
                assignments: {
                    attributeId: any;
                    category: any;
                    expression: any;
                    issuer: any;
                }[];
                id: any;
                on: any;
            }[];
            policyCombinerParameters: {
                parameters: { name: any; value: any }[];
                ref: any;
            }[];
            policySetCombinerParameters: {
                parameters: { name: any; value: any }[];
                ref: any;
            }[];
            target: {
                anyOf: {
                    allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                }[];
            };
            version: any;
            xpathVersion: string;
        } = parsePolicy

    Type Declaration

      • (
            xml: any,
        ):
            | {
                advice: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                combinerParameters: any[];
                combiningAlgId: any;
                description: string;
                id: any;
                kind: string;
                maxDelegationDepth: any;
                obligations: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                ruleCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                rules: {
                    advice: {
                        assignments: {
                            attributeId: any;
                            category: any;
                            expression: any;
                            issuer: any;
                        }[];
                        id: any;
                        on: any;
                    }[];
                    condition: any;
                    description: string;
                    effect: any;
                    id: any;
                    obligations: {
                        assignments: {
                            attributeId: any;
                            category: any;
                            expression: any;
                            issuer: any;
                        }[];
                        id: any;
                        on: any;
                    }[];
                    target: { anyOf: { allOf: { matches: (...)[] }[] }[] };
                }[];
                target: {
                    anyOf: {
                        allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                    }[];
                };
                variables: {};
                version: any;
                xpathVersion: string;
            }
            | {
                advice: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                children: any[];
                combinerParameters: any[];
                combiningAlgId: any;
                description: string;
                id: any;
                kind: string;
                maxDelegationDepth: any;
                obligations: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                policyCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                policySetCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                target: {
                    anyOf: {
                        allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                    }[];
                };
                version: any;
                xpathVersion: string;
            }
      • Reads a XACML 3.0 Policy or PolicySet document into the model and validates it statically.

        Parameters

        • xml: any

          the policy document text

        Returns
            | {
                advice: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                combinerParameters: any[];
                combiningAlgId: any;
                description: string;
                id: any;
                kind: string;
                maxDelegationDepth: any;
                obligations: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                ruleCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                rules: {
                    advice: {
                        assignments: {
                            attributeId: any;
                            category: any;
                            expression: any;
                            issuer: any;
                        }[];
                        id: any;
                        on: any;
                    }[];
                    condition: any;
                    description: string;
                    effect: any;
                    id: any;
                    obligations: {
                        assignments: {
                            attributeId: any;
                            category: any;
                            expression: any;
                            issuer: any;
                        }[];
                        id: any;
                        on: any;
                    }[];
                    target: { anyOf: { allOf: { matches: (...)[] }[] }[] };
                }[];
                target: {
                    anyOf: {
                        allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                    }[];
                };
                variables: {};
                version: any;
                xpathVersion: string;
            }
            | {
                advice: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                children: any[];
                combinerParameters: any[];
                combiningAlgId: any;
                description: string;
                id: any;
                kind: string;
                maxDelegationDepth: any;
                obligations: {
                    assignments: {
                        attributeId: any;
                        category: any;
                        expression: any;
                        issuer: any;
                    }[];
                    id: any;
                    on: any;
                }[];
                policyCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                policySetCombinerParameters: {
                    parameters: { name: any; value: any }[];
                    ref: any;
                }[];
                target: {
                    anyOf: {
                        allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
                    }[];
                };
                version: any;
                xpathVersion: string;
            }

        the Policy or PolicySet model

        an IndeterminateError with the syntax-error status when the document is malformed, has another root or does not typecheck