Record Class PushKeyFiles.VapidKeyFile
java.lang.Object
java.lang.Record
com.iizix.push.PushKeyFiles.VapidKeyFile
- Record Components:
file- The file, absolute and normalized.publicKey-VPubKey, base64url.privateKey-VPrivKey, base64url. Never printed.
- Enclosing class:
PushKeyFiles
Constructor Summary
ConstructorsConstructorDescriptionVapidKeyFile(Path file, String publicKey, String privateKey) Creates an instance of aVapidKeyFilerecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyrecord component.Returns the value of thepublicKeyrecord component.toString()Never the private key.
Constructor Details
VapidKeyFile
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. All components in this record class are compared withObjects::equals(Object,Object).file
publicKey
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component