DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40921





------- Additional Comments From [EMAIL PROTECTED]  2006-11-10 11:49 -------
(In reply to comment #9)
> (In reply to comment #8)
> 
> Hello 
> 
> I tried to get the public key from the certificate. But the keyInfo object is
> instance of KeyValue. I need that the KeyInfo Object was instance of
> KeyInfo...so i could get x509Data and then x509Certificate. The method that i
> recieve the KeyInfo object:
> 
> public KeySelectorResult select(KeyInfo keyInfo,  KeySelector.Purpose
> purpose, AlgorithmMethod method, XMLCryptoContext context) throws
> KeySelectorException {
> 
> Is there anyway to get the keyinfo as instance of KeyInfo ?

I'm afraid I don't understand the problem. keyInfo must be an instance of
KeyInfo otherwise you will get a ClassCastException. You can call 
keyInfo.getContent() which will return a List of XMLStructure objects, each
of which represents an element in the KeyInfo (KeyValue, X509Data, etc).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to