PKITLSClientAuthentication
, SelfSignedTLSClientAuthentication
public abstract class TLSClientAuthentication extends ClientAuthentication
Modifier | Constructor | Description |
---|---|---|
protected |
TLSClientAuthentication(ClientAuthenticationMethod method,
ClientID clientID) |
Creates a new abstract mutual TLS client authentication.
|
protected |
TLSClientAuthentication(ClientAuthenticationMethod method,
ClientID clientID,
SSLSocketFactory sslSocketFactory) |
Creates a new abstract mutual TLS client authentication.
|
Modifier and Type | Method | Description |
---|---|---|
void |
applyTo(HTTPRequest httpRequest) |
Applies the authentication to the specified HTTP request by setting
its Authorization header and/or POST entity-body parameters
(according to the implemented client authentication method).
|
SSLSocketFactory |
getSSLSocketFactory() |
Returns the SSL socket factory to use for an outgoing HTTPS request
and to present the client certificate(s).
|
getClientID, getMethod, parse
protected TLSClientAuthentication(ClientAuthenticationMethod method, ClientID clientID, SSLSocketFactory sslSocketFactory)
method
- The client authentication method. Must not
be null
.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.protected TLSClientAuthentication(ClientAuthenticationMethod method, ClientID clientID)
method
- The client authentication method. Must not be
null
.clientID
- The client identifier. Must not be null
.public SSLSocketFactory getSSLSocketFactory()
null
to use the default one.public void applyTo(HTTPRequest httpRequest)
ClientAuthentication
applyTo
in class ClientAuthentication
httpRequest
- The HTTP request. Must not be null
.Copyright © 2019 Connect2id Ltd.. All rights reserved.