Retrieving certificate from SecurityTokenReference reference. #297
-
Hi team, I have a question regarding the process of validating the signature. I need to configure a Crypto to validate the signature. Why do I need that? The certificate is already provided in SecurityTokenReference reference inside the signature, which is the certificate used to sign the document.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @rafael-andrade, May I ask, why that is an issue for you? |
Beta Was this translation helpful? Give feedback.
-
@phax Hi Philip, Yes, my question is Peppol related. When we receive a AS4 User Message, the public key should be retrieved from SMP or from inside the security header (at least in my thoughts, I am not sure if I am completely right here). I am not understanding how the Crypto is being loaded/handled in this particular case, since the certificate will be "dynamically" as it is based on the sender. |
Beta Was this translation helpful? Give feedback.
Incoming BSTs are handled by class
BinarySecurityTokenProcessor
in wss4j. This class is requiring theCrypto
object to be set for parsing the certificate.