Dan,

If I understand correctly what you trying to do, one way you could do this
is to get the message context within this method, get your header from the
message context and do cert look up using the header info.

Sanjesh

Real-Time Web Service Monitoring for Java and .NET
SoapKnox Inc
http://www.soapknox.com
Ph: 832 279 3745

-----Original Message-----
From: DanD [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 1:41 PM
To: [email protected]
Subject: org.apache.ws.security.components.crypto.Crypto API question


We use a custom process to access digital certs and private keys and do not
use key stores.  To manage this process, I've implemented my own version of
Crypto and gotten it to work for my three use cases (signatures, encryption
and sign/encrypt).  My question concerns the method     

public String getAliasForX509Cert(Certificate cert) throws
WSSecurityException;

This basically requires me to iterate through every cert in our database to
find a match and then return an alias.  Having thousands of certs to search
through makes this a deal breaker.  Is it possible to have the section of
code that calls this API function to pass in the headers received with the
SOAP envelope?  All of our customers are required to send header information
that we use to look up the certs.  If this can't be patched into the code
base, could someone point me to the set of classes I would need to change to
implement it myself?

Thanks,
Dan

-- 
View this message in context:
http://www.nabble.com/org.apache.ws.security.components.crypto.Crypto-API-qu
estion-tf3602581.html#a10064063
Sent from the WSS4J mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to