Record Class AesResultEncryptor.KeyAndEncryptor
java.lang.Object
java.lang.Record
cloud.opencode.base.web.crypto.AesResultEncryptor.KeyAndEncryptor
- Record Components:
key- the generated key | 生成的密钥encryptor- the encryptor | 加密器
- Enclosing class:
AesResultEncryptor
public static record AesResultEncryptor.KeyAndEncryptor(byte[] key, AesResultEncryptor encryptor)
extends Record
Key and Encryptor pair
密钥和加密器对
- Since:
- JDK 25, opencode-base-web V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionKeyAndEncryptor(byte[] key, AesResultEncryptor encryptor) Creates an instance of aKeyAndEncryptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theencryptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
key
-
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). -
encryptor
-