You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Albert Deinbeck (JIRA)" <ji...@apache.org> on 2008/10/16 10:14:44 UTC

[jira] Created: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
---------------------------------------------------------------------------------------------------------

                 Key: WSS-149
                 URL: https://issues.apache.org/jira/browse/WSS-149
             Project: WSS4J
          Issue Type: Bug
          Components: WSS4J Core
         Environment: Merlin under Spring WS
            Reporter: Albert Deinbeck
            Assignee: Ruchith Udayanga Fernando


I'm using WSS4J and Merlin in a Spring WS environment. 
We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.

Could you add something like this to AbstractCrypto?

        String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
        InputStream is = null;
        if(location != null){
               // load -is- from location
         }
        // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Resolved: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved WSS-149.
-------------------------------------

    Resolution: Fixed

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 1.5.4
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.5.5
>
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Commented: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Albert Deinbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640475#action_12640475 ] 

Albert Deinbeck commented on WSS-149:
-------------------------------------

I tested it and it works. for me, that is...
it works with SUN JKS and our own DBKS keystore. 

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 1.5.4
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.5.5
>
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Closed: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh closed WSS-149.
-----------------------------------


> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 1.5.4
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.5.5
>
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Commented: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640122#action_12640122 ] 

Colm O hEigeartaigh commented on WSS-149:
-----------------------------------------


Can you submit the change as a patch?

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Ruchith Udayanga Fernando
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Updated: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Albert Deinbeck (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Deinbeck updated WSS-149:
--------------------------------

    Attachment: AbstractCrypto.java

How about this?

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Updated: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated WSS-149:
------------------------------------

        Fix Version/s: 1.5.5
    Affects Version/s: 1.5.4

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 1.5.4
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.5.5
>
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Assigned: (WSS-149) AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh reassigned WSS-149:
---------------------------------------

    Assignee: Colm O hEigeartaigh  (was: Ruchith Udayanga Fernando)

> AbstractCrypto requires org.apache.ws.security.crypto.merlin.file to be set and point to an existing file
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-149
>                 URL: https://issues.apache.org/jira/browse/WSS-149
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>         Environment: Merlin under Spring WS
>            Reporter: Albert Deinbeck
>            Assignee: Colm O hEigeartaigh
>         Attachments: AbstractCrypto.java
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I'm using WSS4J and Merlin in a Spring WS environment. 
> We are using a custom Keystore implementation which retrieves keys and certificates from an external database. 
> Keystore interface explicitely allows to give null for the input stream if the keys are not loaded from a file.
> However, AbstractCrypto doesn't allow "org.apache.ws.security.crypto.merlin.file" to be null. 
> This means that we either have to point to a useless dummy file or subclass Merlin and AbstractCrypto.
> Could you add something like this to AbstractCrypto?
>         String location = this.properties.getProperty("org.apache.ws.security.crypto.merlin.file");
>         InputStream is = null;
>         if(location != null){
>                // load -is- from location
>          }
>         // load keystore - with -is- possibly null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org