You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/08/28 12:46:01 UTC

[jira] [Commented] (SANTUARIO-469) How do enable "secure validation" property in stax

    [ https://issues.apache.org/jira/browse/SANTUARIO-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143733#comment-16143733 ] 

Colm O hEigeartaigh commented on SANTUARIO-469:
-----------------------------------------------

Please use the mailing lists to ask questions and not JIRA - JIRA is for bugs or code issues.

The answer to your question is that there is not a single "secure validation" property for the streaming case, but instead some configuration parameters that you can tweak if required. See here:

https://github.com/apache/santuario-java/blob/trunk/src/main/resources/security-config.xml#L23

Note that by default the properties more or less match the enabled secure validation property.

> How do enable "secure validation" property in stax 
> ---------------------------------------------------
>
>                 Key: SANTUARIO-469
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-469
>             Project: Santuario
>          Issue Type: Wish
>          Components: Java
>    Affects Versions: Java 2.0.8
>            Reporter: Manjesh Kumar
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>
> Hi,
> I am seeking help how to enable "secure validation" property in stax implementation. I have searched on web but couldn't find a  way to enable it by using santurio stax api. 
> Though I found how to do it in santurio DOM api.
> {code:java}
> XMLValidateContext context = new DOMValidateContext(key, elem);
> context.setProperty("org.apache.jcp.xml.dsig.secureValidation", Boolean.TRUE); 
> {code}
> Thanks,
> Manjesh



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)