Package io.micronaut.security.x509
Class X509ConfigurationProperties
java.lang.Object
io.micronaut.security.x509.X509ConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,X509Configuration
@ConfigurationProperties("micronaut.security.x509")
public class X509ConfigurationProperties
extends Object
implements X509Configuration
Configuration for X.509 authentication.
- Since:
- 3.3
- Author:
- Burt Beckwith
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
boolean
void
setEnabled
(boolean enabled) Enables theX509AuthenticationFetcher
.void
setSubjectDnRegex
(@NonNull String subjectDnRegex) Set the Subject DN regex.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value.- See Also:
-
DEFAULT_SUBJECT_DN_REGEX
The default Subject Distinguished Name (DN) regex.- See Also:
-
-
Constructor Details
-
X509ConfigurationProperties
public X509ConfigurationProperties()
-
-
Method Details
-
getSubjectDnRegex
- Specified by:
getSubjectDnRegex
in interfaceX509Configuration
- Returns:
- the Subject Distinguished Name (DN) regex
-
setSubjectDnRegex
Set the Subject DN regex. Default value "CN=(.*?)(?:,|$)".- Parameters:
subjectDnRegex
- the regex
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Enables theX509AuthenticationFetcher
. Default value false.- Parameters:
enabled
- true if enabled
-