Package io.quarkus.vertx.http.security
Interface MTLS
@Experimental("This API is currently experimental and might get changed")
public interface MTLS
This class provides a way to create the mutual TLS client authentication mechanism. The
HttpAuthenticationMechanism
created with this class can be registered using the HttpSecurity.mechanism(HttpAuthenticationMechanism) method.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThe mutual TLS client authentication mechanism builder. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic MTLS.Builderbuilder()static MtlsAuthenticationMechanismrequest()Creates the mutual TLS client authentication mechanism.static MtlsAuthenticationMechanismCreates the mutual TLS client authentication mechanism.static MtlsAuthenticationMechanismCreates the mutual TLS client authentication mechanism.static MtlsAuthenticationMechanismrequired()Creates the mutual TLS client authentication mechanism.static MtlsAuthenticationMechanismCreates the mutual TLS client authentication mechanism.static MtlsAuthenticationMechanismCreates the mutual TLS client authentication mechanism.
-
Method Details
-
request
Creates the mutual TLS client authentication mechanism. The client authentication is accepted if presented by a client. Use this method if the client authentication is only required for certain routes and secure these routes with HTTP permissions or standard security annotations.- Parameters:
tlsConfigurationName- the name of the configuration, cannot benull, cannot be<default>- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
request
static MtlsAuthenticationMechanism request(String tlsConfigurationName, io.quarkus.tls.TlsConfiguration tlsConfiguration) Creates the mutual TLS client authentication mechanism. The client authentication is accepted if presented by a client. Use this method if the client authentication is only required for certain routes and secure these routes with HTTP permissions or standard security annotations.- Parameters:
tlsConfigurationName- the name of the configuration, cannot benull, cannot be<default>tlsConfiguration- the configuration cannot benull- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
request
Creates the mutual TLS client authentication mechanism. The client authentication is accepted if presented by a client. Use this method if the client authentication is only required for certain routes and secure these routes with HTTP permissions or standard security annotations.- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
required
static MtlsAuthenticationMechanism required(String tlsConfigurationName, io.quarkus.tls.TlsConfiguration tlsConfiguration) Creates the mutual TLS client authentication mechanism. This mechanism always require the client authentication.- Parameters:
tlsConfigurationName- the name of the configuration, cannot benull, cannot be<default>tlsConfiguration- the configuration cannot benull- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
required
Creates the mutual TLS client authentication mechanism. This mechanism always require the client authentication.- Parameters:
tlsConfigurationName- the name of the configuration, cannot benull, cannot be<default>- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
required
Creates the mutual TLS client authentication mechanism. This mechanism always require the client authentication.- Returns:
- MtlsAuthenticationMechanism
- See Also:
-
builder
- Returns:
- Builder for the mutual TLS client authentication mechanism. By default, this builder creates a mechanism which requires client authentication.
-