Class SslRequestFactories
java.lang.Object
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.SslRequestFactories
Builds the HTTP request factory that presents the client certificate: the one of the SSL bundle named by
service-client.auth.ssl-bundle. It is used for the token endpoint and for the resource server, whose tokens may be
bound to that certificate.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServiceClientAuthPropertiesSettings of the service client at the authorization server.private final org.springframework.beans.factory.ObjectProvider<org.springframework.boot.ssl.SslBundles> The SSL bundles of the application, when SSL is configured at all. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
properties
Settings of the service client at the authorization server. -
sslBundles
private final org.springframework.beans.factory.ObjectProvider<org.springframework.boot.ssl.SslBundles> sslBundlesThe SSL bundles of the application, when SSL is configured at all.
-
-
Constructor Details
-
SslRequestFactories
public SslRequestFactories()
-
-
Method Details
-
create
Builds a request factory over the configured SSL bundle.- Returns:
- the factory, or empty when no bundle is configured and the authentication method does not need one.
- Throws:
IllegalStateException- if a mutual TLS method is configured without a bundle, or the bundle does not exist.
-