Record Class PkiServerConfiguration
java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration
- Record Components:
version- server schema versionserverName- safe bounded operational namerealm- exact realm configurationlistener- HTTPS listener policyauthentication- strict client-certificate mappingsexecution- bounded execution and shutdown policyruntime- process-local capability referencespublicListener- optional separately bounded public repository listeneracmeListener- optional separately bounded ACME protocol listenerestListener- optional separately bounded EST protocol listenerscepListener- optional separately bounded SCEP protocol listenercmpListener- optional separately bounded CMP protocol listenerauditProjection- bounded audit-projection scheduling policy
public record PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener, Optional<PkiServerConfiguration.AcmeListener> acmeListener, Optional<PkiServerConfiguration.EstListener> estListener, Optional<PkiServerConfiguration.ScepListener> scepListener, Optional<PkiServerConfiguration.CmpListener> cmpListener, PkiServerConfiguration.AuditProjection auditProjection)
extends Record
Strict immutable configuration for one administrative HTTPS server instance.
The record owns no secret values. Provider properties may contain paths and
names of external environment-variable references and therefore must never be
rendered or logged. One instance belongs to exactly one realm and creates one
long-lived ServerRealmContext.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSeparately bounded ACME listener and protocol-security configuration.static enumClosed ACME listener transport topologies.static final recordBounded audit-projection policy, independently applied to revocation and each evidence family.static final recordStrict mode-separated administrative client-certificate authentication.static final recordOne exact client-certificate mapping.static final recordConfiguration for the optional CMP RFC 4210/9480 HTTPS listener.static final recordSeparately bounded EST protocol listener configuration.static final recordBounded worker, queue, admission, deadline and shutdown policy.static final recordHTTPS listener configuration.static final recordSeparately bounded public repository listener configuration.static final recordProcess-local capability references.static final recordConfiguration for the optional SCEP RFC 8894 HTTPS listener.static final recordBounds for one signing-reconciliation pass executed bySigningReconciliationWorker. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent server configuration schema. -
Constructor Summary
ConstructorsConstructorDescriptionPkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime) Creates a configuration with the public repository and ACME listeners disabled.PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener) Creates a configuration with ACME disabled.PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener, Optional<PkiServerConfiguration.AcmeListener> acmeListener) Creates a configuration with default audit projection.PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener, Optional<PkiServerConfiguration.AcmeListener> acmeListener, Optional<PkiServerConfiguration.EstListener> estListener, Optional<PkiServerConfiguration.ScepListener> scepListener, Optional<PkiServerConfiguration.CmpListener> cmpListener, PkiServerConfiguration.AuditProjection auditProjection) Validates all security-sensitive fields before resource allocation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacmeListenerrecord component.Returns the value of theauditProjectionrecord component.Returns the value of theauthenticationrecord component.Returns the value of thecmpListenerrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theestListenerrecord component.Returns the value of theexecutionrecord component.final inthashCode()Returns a hash code value for this object.listener()Returns the value of thelistenerrecord component.Returns the value of thepublicListenerrecord component.realm()Returns the value of therealmrecord component.runtime()Returns the value of theruntimerecord component.Returns the value of thescepListenerrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Field Details
-
CURRENT_VERSION
public static final int CURRENT_VERSIONCurrent server configuration schema.- See Also:
-
-
Constructor Details
-
PkiServerConfiguration
public PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener, Optional<PkiServerConfiguration.AcmeListener> acmeListener, Optional<PkiServerConfiguration.EstListener> estListener, Optional<PkiServerConfiguration.ScepListener> scepListener, Optional<PkiServerConfiguration.CmpListener> cmpListener, PkiServerConfiguration.AuditProjection auditProjection) Validates all security-sensitive fields before resource allocation. -
PkiServerConfiguration
public PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener) Creates a configuration with ACME disabled.- Parameters:
version- configuration schema versionserverName- nonblank server namerealm- realm configurationlistener- administrative HTTPS listenerauthentication- administrative authentication policyexecution- bounded request-execution policyruntime- explicit process-local runtime capabilitiespublicListener- optional public repository listener
-
PkiServerConfiguration
public PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime, Optional<PkiServerConfiguration.PublicListener> publicListener, Optional<PkiServerConfiguration.AcmeListener> acmeListener) Creates a configuration with default audit projection.- Parameters:
version- configuration schema versionserverName- nonblank server namerealm- realm configurationlistener- administrative HTTPS listenerauthentication- administrative authentication policyexecution- bounded request-execution policyruntime- explicit process-local runtime capabilitiespublicListener- optional public repository listeneracmeListener- optional ACME protocol listener
-
PkiServerConfiguration
public PkiServerConfiguration(int version, String serverName, ServerRealmConfiguration realm, PkiServerConfiguration.Listener listener, PkiServerConfiguration.Authentication authentication, PkiServerConfiguration.Execution execution, PkiServerConfiguration.RuntimeCapabilities runtime) Creates a configuration with the public repository and ACME listeners disabled.- Parameters:
version- configuration schema versionserverName- nonblank server namerealm- realm configurationlistener- administrative HTTPS listenerauthentication- administrative authentication policyexecution- bounded request-execution policyruntime- explicit process-local runtime capabilities
-
-
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. -
version
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
realm
-
listener
-
authentication
Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
execution
-
runtime
-
publicListener
Returns the value of thepublicListenerrecord component.- Returns:
- the value of the
publicListenerrecord component
-
acmeListener
Returns the value of theacmeListenerrecord component.- Returns:
- the value of the
acmeListenerrecord component
-
estListener
Returns the value of theestListenerrecord component.- Returns:
- the value of the
estListenerrecord component
-
scepListener
Returns the value of thescepListenerrecord component.- Returns:
- the value of the
scepListenerrecord component
-
cmpListener
Returns the value of thecmpListenerrecord component.- Returns:
- the value of the
cmpListenerrecord component
-
auditProjection
Returns the value of theauditProjectionrecord component.- Returns:
- the value of the
auditProjectionrecord component
-