public interface ClientTrustDecider extends TrustDecider
Modifier and Type | Field and Description |
---|---|
static byte |
dss_ephemeral_dh
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
dss_fixed_dh
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
dss_sign
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
fortezza_dms
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
rsa_ephemeral_dh
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
rsa_fixed_dh
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
static byte |
rsa_sign
Deprecated.
A possible certificate type for a CertificateRequest handshake message.
|
Modifier and Type | Method and Description |
---|---|
SSLCertificate |
getCertificate(byte[] certificateTypes,
java.security.Principal[] certificateAuthorities,
java.lang.String keyExchangeAlgorithm)
Deprecated.
Returns a client certificate.
|
java.security.PrivateKey |
getPrivateKey()
Deprecated.
Returns the private key belonging to the certificate returned by getCertificate().
|
isTrustedPeer
static final byte rsa_sign
static final byte dss_sign
static final byte rsa_fixed_dh
static final byte dss_fixed_dh
static final byte rsa_ephemeral_dh
static final byte dss_ephemeral_dh
static final byte fortezza_dms
SSLCertificate getCertificate(byte[] certificateTypes, java.security.Principal[] certificateAuthorities, java.lang.String keyExchangeAlgorithm)
If there is no TrustDecider set in a SSLClientContext a NoCertificate warning is sent to the server.
By implementing this interface someone can use his own procedure to access the client certificates.
certificateTypes
- the certificate types the server requierescertificateAuthorities
- the certification authorities the server acceptsjava.security.PrivateKey getPrivateKey()