Record Class AppPushConfigs.Signer
java.lang.Object
java.lang.Record
com.iizix.server.push.engine.AppPushConfigs.Signer
- Record Components:
rowAppId- The application of the row.appId- The configuration that signs:rowAppId, orAppPushConfigs.NO_APPfor a row made under the server's own key or project (RR-21 C); null when no configuration of this server can.mismatch- Why none can, the reason ofDeliveryOutcome.KEY_MISMATCH; null whenappIdis set.
- Enclosing class:
AppPushConfigs
public static record AppPushConfigs.Signer(String rowAppId, String appId, String mismatch) extends Record
The credentials a subscription row is signed with (
AppPushConfigs.signer(SubscriptionRecord)): the configuration of an application, the row's own or AppPushConfigs.NO_APP, or none.- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionappId()Returns the value of theappIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Completes a reason about the configuration that signs, saying that it is*'s when the row is another application's, so that aTRANSPORT_NOT_CONFIGUREDof a row signed as*does not read as the application's.final inthashCode()Returns a hash code value for this object.booleanTells whether no configuration of this server can sign for the row.booleanisStar()Tells whether the row of an application is signed with the server's own*configuration.mismatch()Returns the value of themismatchrecord component.rowAppId()Returns the value of therowAppIdrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Signer
Method Details
isMismatch
public boolean isMismatch()Tells whether no configuration of this server can sign for the row.- Returns:
- true for
KEY_MISMATCH.
isStar
public boolean isStar()Tells whether the row of an application is signed with the server's own*configuration.- Returns:
- true for a row made under
*'s key or project for another application.
explain
Completes a reason about the configuration that signs, saying that it is*'s when the row is another application's, so that aTRANSPORT_NOT_CONFIGUREDof a row signed as*does not read as the application's.- Parameters:
reason- The reason.- Returns:
- The reason, completed when
isStar().
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).rowAppId
appId
mismatch