Class PkiServerConfigurationCodec
java.lang.Object
zeroecho.pki.server.PkiServerConfigurationCodec
Strict current-version server configuration decoder with closed field sets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum server configuration document size. -
Method Summary
Modifier and TypeMethodDescriptionstatic PkiServerConfigurationdecode(byte[] document) Decodes one bounded strict configuration document.static PkiServerConfigurationReads and validates one exact configuration without opening providers, stores, listeners, audit sinks, or sessions.
-
Field Details
-
MAXIMUM_CONFIGURATION_BYTES
public static final int MAXIMUM_CONFIGURATION_BYTESMaximum server configuration document size.- See Also:
-
-
Method Details
-
read
Reads and validates one exact configuration without opening providers, stores, listeners, audit sinks, or sessions.- Parameters:
path- configuration path- Returns:
- immutable validated configuration
- Throws:
IOException- when the bounded file cannot be readIllegalArgumentException- when framing or semantics are invalid
-
decode
Decodes one bounded strict configuration document.- Parameters:
document- encoded configuration, bounded byMAXIMUM_CONFIGURATION_BYTES- Returns:
- immutable validated server configuration
- Throws:
IllegalArgumentException- if framing, schema version, or semantics are invalid
-