Signing arbitrary data with x509 in Java
I have an API which which 开发者_StackOverflow社区provides authentication via a signed response to a random chalange. Server sends a random string to the client, the client signs this data using a previously established key pair and then sends this data back to the server. I need the format of the signature to be something roughly equivalent to the PGP clear sign or detached signature format. Is this possible to do using only the official Java APIs e.g. no bouncy castle?
oracle.security.crypto.cert.PKCS7
精彩评论