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 "Bob Jacoby (JIRA)" <ji...@apache.org> on 2008/10/14 19:23:44 UTC
[jira] Created: (RAMPART-201) Add alias/certificate used for
validating signature
Add alias/certificate used for validating signature
---------------------------------------------------
Key: RAMPART-201
URL: https://issues.apache.org/jira/browse/RAMPART-201
Project: Rampart
Issue Type: New Feature
Components: rampart-core
Reporter: Bob Jacoby
Assignee: Ruchith Udayanga Fernando
Priority: Minor
Set the alias (or certificate) Rampart used to verify the signature as a property in the message context.
Reason:
To allow other modules/handlers to know which certificate was associated with the signature. Rampart already performs this lookup within the keystore given the token reference within the security header. By including either the certificate or alias found during the lookup, subsequent code can use this information for various purposes (e.g. - retrieve externally stored properties based on the certificate used).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (RAMPART-201) Add alias/certificate used for
validating signature
Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nandana Mihindukulasooriya reassigned RAMPART-201:
--------------------------------------------------
Assignee: Nandana Mihindukulasooriya (was: Ruchith Udayanga Fernando)
> Add alias/certificate used for validating signature
> ---------------------------------------------------
>
> Key: RAMPART-201
> URL: https://issues.apache.org/jira/browse/RAMPART-201
> Project: Rampart
> Issue Type: Improvement
> Components: rampart-core
> Reporter: Bob Jacoby
> Assignee: Nandana Mihindukulasooriya
> Priority: Minor
>
> Set the alias (or certificate) Rampart used to verify the signature as a property in the message context.
> Reason:
> To allow other modules/handlers to know which certificate was associated with the signature. Rampart already performs this lookup within the keystore given the token reference within the security header. By including either the certificate or alias found during the lookup, subsequent code can use this information for various purposes (e.g. - retrieve externally stored properties based on the certificate used).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-201) Add alias/certificate used for
validating signature
Posted by "Bob Jacoby (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643965#action_12643965 ]
Bob Jacoby commented on RAMPART-201:
------------------------------------
This is similar to setting the Username in the context (http://issues.apache.org/jira/browse/RAMPART-178). Until the certificate is set in a similar fashion you can parse the information directly out of the rampart engine results. Something similar to:
X509Certificate consumerCert = null;
for (int i = 0; i < results.size() && consumerCert == null; i++) {
WSHandlerResult rResult = (WSHandlerResult) results.get(i);
Vector wsSecEngineResults = rResult.getResults();
for (int j = 0; j < wsSecEngineResults.size(); j++) {
WSSecurityEngineResult wser = (WSSecurityEngineResult) wsSecEngineResults.get(j);
Integer action = (Integer) wser.get(WSSecurityEngineResult.TAG_ACTION);
int signAction = WSConstants.SIGN;
if (action.equals(signAction)) {
//the result is for the signature, which contains the used certificate
consumerCert = (X509Certificate) wser.get(WSSecurityEngineResult.TAG_X509_CERTIFICATE);
break;
}
}
}
> Add alias/certificate used for validating signature
> ---------------------------------------------------
>
> Key: RAMPART-201
> URL: https://issues.apache.org/jira/browse/RAMPART-201
> Project: Rampart
> Issue Type: Improvement
> Components: rampart-core
> Reporter: Bob Jacoby
> Assignee: Ruchith Udayanga Fernando
> Priority: Minor
>
> Set the alias (or certificate) Rampart used to verify the signature as a property in the message context.
> Reason:
> To allow other modules/handlers to know which certificate was associated with the signature. Rampart already performs this lookup within the keystore given the token reference within the security header. By including either the certificate or alias found during the lookup, subsequent code can use this information for various purposes (e.g. - retrieve externally stored properties based on the certificate used).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (RAMPART-201) Add alias/certificate used for
validating signature
Posted by "Bob Jacoby (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Jacoby updated RAMPART-201:
-------------------------------
Issue Type: Improvement (was: New Feature)
Changed type to 'improvement' from 'new feature'.
> Add alias/certificate used for validating signature
> ---------------------------------------------------
>
> Key: RAMPART-201
> URL: https://issues.apache.org/jira/browse/RAMPART-201
> Project: Rampart
> Issue Type: Improvement
> Components: rampart-core
> Reporter: Bob Jacoby
> Assignee: Ruchith Udayanga Fernando
> Priority: Minor
>
> Set the alias (or certificate) Rampart used to verify the signature as a property in the message context.
> Reason:
> To allow other modules/handlers to know which certificate was associated with the signature. Rampart already performs this lookup within the keystore given the token reference within the security header. By including either the certificate or alias found during the lookup, subsequent code can use this information for various purposes (e.g. - retrieve externally stored properties based on the certificate used).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-201) Add alias/certificate used for
validating signature
Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643981#action_12643981 ]
Nandana Mihindukulasooriya commented on RAMPART-201:
----------------------------------------------------
Hi Bob,
Yes, exactly. These are two comments I did to fix that issue. Can do the same with certificates, test and submit a patch. Anyway we iterate through the results so we would only need to check for signing action while we are iterating and properly set it in the message context.
http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java?p2=%2Fwebservices%2Frampart%2Ftrunk%2Fjava%2Fmodules%2Frampart-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Frampart%2FRampartMessageData.java&p1=%2Fwebservices%2Frampart%2Ftrunk%2Fjava%2Fmodules%2Frampart-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Frampart%2FRampartMessageData.java&r1=671898&r2=671897&view=diff&pathrev=671898
http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-core/src/main/java/org/apache/rampart/RampartEngine.java?p2=%2Fwebservices%2Frampart%2Ftrunk%2Fjava%2Fmodules%2Frampart-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Frampart%2FRampartEngine.java&p1=%2Fwebservices%2Frampart%2Ftrunk%2Fjava%2Fmodules%2Frampart-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Frampart%2FRampartEngine.java&r1=671899&r2=671898&view=diff&pathrev=671899
thanks,
nandana
> Add alias/certificate used for validating signature
> ---------------------------------------------------
>
> Key: RAMPART-201
> URL: https://issues.apache.org/jira/browse/RAMPART-201
> Project: Rampart
> Issue Type: Improvement
> Components: rampart-core
> Reporter: Bob Jacoby
> Assignee: Nandana Mihindukulasooriya
> Priority: Minor
>
> Set the alias (or certificate) Rampart used to verify the signature as a property in the message context.
> Reason:
> To allow other modules/handlers to know which certificate was associated with the signature. Rampart already performs this lookup within the keystore given the token reference within the security header. By including either the certificate or alias found during the lookup, subsequent code can use this information for various purposes (e.g. - retrieve externally stored properties based on the certificate used).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.