Record Class UpdateVerifier.Result
java.lang.Object
java.lang.Record
com.iizix.server.tools.UpdateVerifier.Result
- Record Components:
ok- true when the package may be installed.reason- Why not, null when ok.build- The package's build (the version string of its server jar), null when not found.signer- The subject of the signing certificate, null for an unsigned package.signed- true when every entry is signed by one chain.timestamp- The date of the signature's timestamp, null without one.entries- The number of entries verified.warnings- What was noticed and allowed.flavour- The package's flavour (DistributionFlavour), null before its server jar was read.
- Enclosing class:
UpdateVerifier
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean ok, String reason, String build, String signer, boolean signed, Date timestamp, int entries, List<String> warnings) A result before the package's flavour is known.Result(boolean ok, String reason, String build, String signer, boolean signed, Date timestamp, int entries, List<String> warnings, String flavour) Creates an instance of aResultrecord class.Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the value of thebuildrecord component.intentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.flavour()Returns the value of theflavourrecord component.final inthashCode()Returns a hash code value for this object.booleanok()Returns the value of theokrecord component.reason()Returns the value of thereasonrecord component.booleansigned()Returns the value of thesignedrecord component.signer()Returns the value of thesignerrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
Constructor Details
Result
Result
public Result(boolean ok, String reason, String build, String signer, boolean signed, Date timestamp, int entries, List<String> warnings, String flavour) Creates an instance of aResultrecord class.- Parameters:
ok- the value for theokrecord componentreason- the value for thereasonrecord componentbuild- the value for thebuildrecord componentsigner- the value for thesignerrecord componentsigned- the value for thesignedrecord componenttimestamp- the value for thetimestamprecord componententries- the value for theentriesrecord componentwarnings- the value for thewarningsrecord componentflavour- the value for theflavourrecord component
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.ok
reason
build
signer
signed
timestamp
entries
warnings
flavour