On 3/20/14, 10:42 AM, "M. D." <mo...@abv.bg> wrote: > >I have read the specification and I'm quite familiar with it. It is said >that KeyInfo element may contain multiple X509Data element. X509Data >elements may contain multiple X509Certificate elements.
So you have your answer. >My question is how does >org.apache.xml.security.keys.KeyInfo.getX509Certificate() behave in such >a case because we have the whole certificate chain embedded in the >document. What does the method return? Can I access all certificates from >the chain? Yes, by pulling all of the X509Certificate objects from the X509Data. -- Scott