@Immutable public class SelfSignedTLSClientAuthentication extends TLSClientAuthentication
tls_client_auth
which relies on PKI
binding. Implements
ClientAuthenticationMethod.SELF_SIGNED_TLS_CLIENT_AUTH
.
Related specifications:
Constructor | Description |
---|---|
SelfSignedTLSClientAuthentication(ClientID clientID,
X509Certificate x509Certificate) |
Creates a new self-signed certificate mutual TLS client
authentication.
|
SelfSignedTLSClientAuthentication(ClientID clientID,
SSLSocketFactory sslSocketFactory) |
Creates a new self-signed certificate mutual TLS client
authentication.
|
Modifier and Type | Method | Description |
---|---|---|
X509Certificate |
getClientX509Certificate() |
Returns the validated client X.509 certificate from the received
HTTPS request.
|
static SelfSignedTLSClientAuthentication |
parse(HTTPRequest httpRequest) |
Parses a self-signed certificate mutual TLS client authentication
from the specified HTTP request.
|
getClientID, getMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyTo, getSSLSocketFactory
public SelfSignedTLSClientAuthentication(ClientID clientID, SSLSocketFactory sslSocketFactory)
clientID
- The client identifier. Must not be
null
.sslSocketFactory
- The SSL socket factory to use for the
outgoing HTTPS request and to present the
client certificate(s), null
to use
the default one.public SelfSignedTLSClientAuthentication(ClientID clientID, X509Certificate x509Certificate)
clientID
- The client identifier. Must not be
null
.x509Certificate
- The validated client X.509 certificate from
the received HTTPS request. Must not be
null
.public X509Certificate getClientX509Certificate()
null
for an outgoing
HTTPS request.public static SelfSignedTLSClientAuthentication parse(HTTPRequest httpRequest) throws ParseException
httpRequest
- The HTTP request to parse. Must not be
null
and must include a validated client
X.509 certificate.ParseException
- If the client_id
or client X.509
certificate is missing.Copyright © 2019 Connect2id Ltd.. All rights reserved.