Record Class AppKeyProvider.AppKey
java.lang.Object
java.lang.Record
tech.riemann.nif.web.sign.AppKeyProvider.AppKey
- Record Components:
publicKey- 公钥(验签必需要)privateKey- 私钥(签名端需要,纯验签场景可为 null)
- Enclosing interface:
AppKeyProvider
public static record AppKeyProvider.AppKey(PublicKey publicKey, PrivateKey privateKey)
extends Record
非对称密钥载体
- Author:
- Kerbores(kerbores@riemann.tech)
-
Constructor Summary
ConstructorsConstructorDescriptionAppKey(PublicKey publicKey, PrivateKey privateKey) Creates an instance of aAppKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyrecord component.Returns the value of thepublicKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppKey
Creates an instance of aAppKeyrecord class.- Parameters:
publicKey- the value for thepublicKeyrecord componentprivateKey- the value for theprivateKeyrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
publicKey
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-