You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Abdelaziz Samari (JIRA)" <ji...@apache.org> on 2007/08/30 16:54:30 UTC

[jira] Created: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

Rampart ignores the ramp:encryptionCypto
----------------------------------------

                 Key: RAMPART-78
                 URL: https://issues.apache.org/jira/browse/RAMPART-78
             Project: Rampart
          Issue Type: Bug
          Components: rampart-policy
    Affects Versions: 1.1, 1.2, 1.3
            Reporter: Abdelaziz Samari


It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.

Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
I suggest to add th following code in the method build of the class RampartConfigBuilder:

	//signatureCypto
	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
        
       if (childElement != null)  {

            rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
                    .build(childElement.getFirstElement()));
        }

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


[jira] Commented: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

Posted by "Hans G Knudsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551005 ] 

Hans G Knudsen commented on RAMPART-78:
---------------------------------------

Hi!

In RampartEngine it seems that encryptionCrypto must be swapped with signatureCrypto

in the 'processSecurityHeader' call

                results = engine.processSecurityHeader(rmd.getDocument(),
                    actorValue, 
                    tokenCallbackHandler,
                    encryptionCrypto,
                    signatureCrypto);

If we asume that :

signatureCrypto = keystore with my privatekey and certificate
encryptionCrypto = keystore with other peoples certificate(s) path



> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Commented: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551483 ] 

Nandana Mihindukulasooriya commented on RAMPART-78:
---------------------------------------------------

Yes, Rampart config builder seems to ignore the Encryption Crypto. 

the 'processSecurityHeader' call is already corrected in the trunk. 

			results = engine.processSecurityHeader(rmd.getDocument(),
					actorValue, 
					tokenCallbackHandler,
					signatureCrypto, 
							RampartUtil.getEncryptionCrypto(rpd.getRampartConfig(), 
									msgCtx.getAxisService().getClassLoader()));
 
and we correctly look for the encryption crypto in the first and use signature crypto if only encryption crypto not found.

        if(config != null && config.getEncrCryptoConfig() != null) {
            CryptoConfig cryptoConfig = config.getEncrCryptoConfig();
             ...
            return CryptoFactory.getInstance(prop, loader);
        } else {
            //Try using signature crypto infomation
            if(config != null && config.getSigCryptoConfig() != null) {
                CryptoConfig cryptoConfig = config.getSigCryptoConfig();
                 ...
                return CryptoFactory.getInstance(prop, loader);
            } else {
                return null;
            }
        } 


> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>            Assignee: Nandana Mihindukulasooriya
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Updated: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

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

Abdelaziz Samari updated RAMPART-78:
------------------------------------

    Description: 
It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.

Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
I suggest to add th following code in the method build of the class RampartConfigBuilder:

	//encryptionCypto 
	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
        
       if (childElement != null)  {

            rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
                    .build(childElement.getFirstElement()));
        }

  was:
It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.

Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
I suggest to add th following code in the method build of the class RampartConfigBuilder:

	//signatureCypto
	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
        
       if (childElement != null)  {

            rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
                    .build(childElement.getFirstElement()));
        }


> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Commented: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551728 ] 

Nandana Mihindukulasooriya commented on RAMPART-78:
---------------------------------------------------

fixed in Revision 604128.

> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>            Assignee: Nandana Mihindukulasooriya
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Assigned: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

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

Nandana Mihindukulasooriya reassigned RAMPART-78:
-------------------------------------------------

    Assignee: Nandana Mihindukulasooriya

> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>            Assignee: Nandana Mihindukulasooriya
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Resolved: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

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

Nandana Mihindukulasooriya resolved RAMPART-78.
-----------------------------------------------

    Resolution: Fixed

Fixed.

> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>            Assignee: Nandana Mihindukulasooriya
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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


[jira] Commented: (RAMPART-78) Rampart ignores the ramp:encryptionCypto

Posted by "Hans G Knudsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550992 ] 

Hans G Knudsen commented on RAMPART-78:
---------------------------------------

Hi!

RampartConfig.ENCR_CRYPTO_LN has a typo :

encryptionCypto  

and not :

encryptionCrypto



> Rampart ignores the ramp:encryptionCypto
> ----------------------------------------
>
>                 Key: RAMPART-78
>                 URL: https://issues.apache.org/jira/browse/RAMPART-78
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Abdelaziz Samari
>
> It seems that rampart ignores the ramp:encryptionCypto in the ramp:RampartConfig assertion.
> Theire is no implementation concerning the encryptionCypto in  the class RampartConfigBuilder.
> I suggest to add th following code in the method build of the class RampartConfigBuilder:
> 	//encryptionCypto 
> 	childElement = element.getFirstChildWithName(new QName(RampartConfig.NS, RampartConfig.ENCR_CRYPTO_LN));
>         
>        if (childElement != null)  {
>             rampartConfig.setEncrCryptoConfig((CryptoConfig) factory
>                     .build(childElement.getFirstElement()));
>         }

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