Record Class DisclosureService.Defaults
java.lang.Object
java.lang.Record
zeroecho.pki.server.DisclosureService.Defaults
- Record Components:
rootCa- root certificate defaultintermediateCa- intermediate certificate defaultcaChain- chain defaultcrl- CRL defaultleaf- leaf defaultsensitiveLeaf- sensitive leaf default
- Enclosing class:
DisclosureService
public static record DisclosureService.Defaults(DisclosureService.Policy rootCa, DisclosureService.Policy intermediateCa, DisclosureService.Policy caChain, DisclosureService.Policy crl, DisclosureService.Policy leaf, DisclosureService.Policy sensitiveLeaf)
extends Record
Configuration-driven safe defaults.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaults(DisclosureService.Policy rootCa, DisclosureService.Policy intermediateCa, DisclosureService.Policy caChain, DisclosureService.Policy crl, DisclosureService.Policy leaf, DisclosureService.Policy sensitiveLeaf) Validates non-null defaults and prohibits public sensitive-leaf defaults. -
Method Summary
Modifier and TypeMethodDescriptioncaChain()Returns the value of thecaChainrecord component.crl()Returns the value of thecrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintermediateCarecord component.leaf()Returns the value of theleafrecord component.static DisclosureService.DefaultsReturns the normative recommended defaults.rootCa()Returns the value of therootCarecord component.Returns the value of thesensitiveLeafrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Defaults
public Defaults(DisclosureService.Policy rootCa, DisclosureService.Policy intermediateCa, DisclosureService.Policy caChain, DisclosureService.Policy crl, DisclosureService.Policy leaf, DisclosureService.Policy sensitiveLeaf) Validates non-null defaults and prohibits public sensitive-leaf defaults.
-
-
Method Details
-
recommended
Returns the normative recommended defaults.- Returns:
- conservative recommended disclosure defaults
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
rootCa
-
intermediateCa
Returns the value of theintermediateCarecord component.- Returns:
- the value of the
intermediateCarecord component
-
caChain
-
crl
-
leaf
-
sensitiveLeaf
Returns the value of thesensitiveLeafrecord component.- Returns:
- the value of the
sensitiveLeafrecord component
-