- All Implemented Interfaces:
- org.apache.http.ssl.PrivateKeyStrategy
public class PredefinedAliasPrivateKeyStrategy
extends java.lang.Object
implements org.apache.http.ssl.PrivateKeyStrategy
When the server requests a certificate, and if it does not specify which one it wants (e.g. if server has trusted
CA's or trusted certificates, it can specify CN of the cerificate when asking for the client certificate), the
client can send any certificate from its keystore. I.e. if we have multiple certificates in the keystore, and we
want to do a request with a specific one out of all of them, we should provide it when asked. It can be done by
using for each request this private key strategy, that would serve the certificate with specified alias from
the keystore, when asked.
User: ypanchenko
Date: 27.07.2015