Record Class PkiServerConfiguration.Authentication
java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.Authentication
- Record Components:
mode- exact deployment modedirectClientMappings- direct TLS end-client mappingsproxyTransportMappings- backend TLS proxy mappingsforwardedClientMappings- externally authenticated end-client mappingstrustedProxyPrincipalIds- explicitly admitted infrastructure principalsforwardedCertificateFormat- selected forwarding representationforwardedCertificateHeaderName- exact leaf header nameforwardedCertificateChainHeaderName- optional exact chain header nameadministrativeClientTrust- independent forwarded-client trust providermaximumForwardedCertificateBytes- maximum decoded leaf sizemaximumForwardedChainBytes- maximum aggregate decoded chain size
- Enclosing class:
PkiServerConfiguration
public static record PkiServerConfiguration.Authentication(AdministrativeAuthenticationMode mode, List<PkiServerConfiguration.ClientCertificateMapping> directClientMappings, List<PkiServerConfiguration.ClientCertificateMapping> proxyTransportMappings, List<PkiServerConfiguration.ClientCertificateMapping> forwardedClientMappings, Set<String> trustedProxyPrincipalIds, Optional<ForwardedCertificateFormat> forwardedCertificateFormat, Optional<String> forwardedCertificateHeaderName, Optional<String> forwardedCertificateChainHeaderName, Optional<ProviderConfig> administrativeClientTrust, int maximumForwardedCertificateBytes, int maximumForwardedChainBytes)
extends Record
Strict mode-separated administrative client-certificate authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthentication(AdministrativeAuthenticationMode mode, List<PkiServerConfiguration.ClientCertificateMapping> directClientMappings, List<PkiServerConfiguration.ClientCertificateMapping> proxyTransportMappings, List<PkiServerConfiguration.ClientCertificateMapping> forwardedClientMappings, Set<String> trustedProxyPrincipalIds, Optional<ForwardedCertificateFormat> forwardedCertificateFormat, Optional<String> forwardedCertificateHeaderName, Optional<String> forwardedCertificateChainHeaderName, Optional<ProviderConfig> administrativeClientTrust, int maximumForwardedCertificateBytes, int maximumForwardedChainBytes) Validates strict mode separation, mappings, headers, and technical bounds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadministrativeClientTrustrecord component.Returns the value of thedirectClientMappingsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforwardedCertificateChainHeaderNamerecord component.Returns the value of theforwardedCertificateFormatrecord component.Returns the value of theforwardedCertificateHeaderNamerecord component.Returns the value of theforwardedClientMappingsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumForwardedCertificateBytesrecord component.intReturns the value of themaximumForwardedChainBytesrecord component.mode()Returns the value of themoderecord component.Returns the value of theproxyTransportMappingsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustedProxyPrincipalIdsrecord component.
-
Constructor Details
-
Authentication
public Authentication(AdministrativeAuthenticationMode mode, List<PkiServerConfiguration.ClientCertificateMapping> directClientMappings, List<PkiServerConfiguration.ClientCertificateMapping> proxyTransportMappings, List<PkiServerConfiguration.ClientCertificateMapping> forwardedClientMappings, Set<String> trustedProxyPrincipalIds, Optional<ForwardedCertificateFormat> forwardedCertificateFormat, Optional<String> forwardedCertificateHeaderName, Optional<String> forwardedCertificateChainHeaderName, Optional<ProviderConfig> administrativeClientTrust, int maximumForwardedCertificateBytes, int maximumForwardedChainBytes) Validates strict mode separation, mappings, headers, and technical bounds.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
mode
-
directClientMappings
Returns the value of thedirectClientMappingsrecord component.- Returns:
- the value of the
directClientMappingsrecord component
-
proxyTransportMappings
Returns the value of theproxyTransportMappingsrecord component.- Returns:
- the value of the
proxyTransportMappingsrecord component
-
forwardedClientMappings
Returns the value of theforwardedClientMappingsrecord component.- Returns:
- the value of the
forwardedClientMappingsrecord component
-
trustedProxyPrincipalIds
Returns the value of thetrustedProxyPrincipalIdsrecord component.- Returns:
- the value of the
trustedProxyPrincipalIdsrecord component
-
forwardedCertificateFormat
Returns the value of theforwardedCertificateFormatrecord component.- Returns:
- the value of the
forwardedCertificateFormatrecord component
-
forwardedCertificateHeaderName
Returns the value of theforwardedCertificateHeaderNamerecord component.- Returns:
- the value of the
forwardedCertificateHeaderNamerecord component
-
forwardedCertificateChainHeaderName
Returns the value of theforwardedCertificateChainHeaderNamerecord component.- Returns:
- the value of the
forwardedCertificateChainHeaderNamerecord component
-
administrativeClientTrust
Returns the value of theadministrativeClientTrustrecord component.- Returns:
- the value of the
administrativeClientTrustrecord component
-
maximumForwardedCertificateBytes
public int maximumForwardedCertificateBytes()Returns the value of themaximumForwardedCertificateBytesrecord component.- Returns:
- the value of the
maximumForwardedCertificateBytesrecord component
-
maximumForwardedChainBytes
public int maximumForwardedChainBytes()Returns the value of themaximumForwardedChainBytesrecord component.- Returns:
- the value of the
maximumForwardedChainBytesrecord component
-