Package anbxj
Class Crypto_SealedPair
java.lang.Object
anbxj.Crypto_SealedPair
- All Implemented Interfaces:
Serializable
Represents a sealed pair of objects (key, message) used for encryption.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrypto_SealedPair
(SealedObject sealedKey, SealedObject sealedMessage, String cipherScheme) Constructs a Crypto_SealedPair with the specified sealed key, message, and cipher scheme.Crypto_SealedPair
(SealedObject sealedKey, SealedObject sealedMessage, String cipherScheme, Crypto_ByteArray digest) Constructs a Crypto_SealedPair with the specified sealed key, message, cipher scheme, and digest. -
Method Summary
-
Constructor Details
-
Crypto_SealedPair
Constructs a Crypto_SealedPair with the specified sealed key, message, and cipher scheme.- Parameters:
sealedKey
- The sealed key.sealedMessage
- The sealed message.cipherScheme
- The cipher scheme used for encryption.
-
Crypto_SealedPair
public Crypto_SealedPair(SealedObject sealedKey, SealedObject sealedMessage, String cipherScheme, Crypto_ByteArray digest) Constructs a Crypto_SealedPair with the specified sealed key, message, cipher scheme, and digest.- Parameters:
sealedKey
- The sealed key.sealedMessage
- The sealed message.cipherScheme
- The cipher scheme used for encryption.digest
- The digest for checking equality of objects (for testing).
-
-
Method Details
-
getCipherScheme
Returns the cipher scheme used.- Returns:
- the cipher scheme as a String.
-
getSealedKey
Returns the sealed key.This method provides the sealed key, which is an instance of
SealedObject
.- Returns:
- the sealed key.
-
getSealedMessage
Returns the sealed message.This method provides the sealed message, which is an instance of
SealedObject
.- Returns:
- the sealed message.
-
hashCode
public int hashCode() -
equals
-
toString
-