Class PrometheusEncryptedPair
java.lang.Object
io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedPair
- All Implemented Interfaces:
MetisDataDifference.MetisDataDiffers,MetisDataItem.MetisDataObjectFormat
public class PrometheusEncryptedPair
extends Object
implements MetisDataItem.MetisDataObjectFormat, MetisDataDifference.MetisDataDiffers
Encrypted Pair.
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusEncryptedPair(GordianKeySet pKeySet, Object pValue, byte[] pBytes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadoptEncryption(PrometheusEncryptor pEncryptor, PrometheusEncryptedPair pSource) Adopt Encryption.Test for difference with another object.booleanformatObject(OceanusDataFormatter pFormatter) Obtain Object summary.byte[]getBytes()Obtain the bytes.Obtain the keySet.getValue()Obtain the value.inthashCode()toString()
-
Constructor Details
-
PrometheusEncryptedPair
PrometheusEncryptedPair(GordianKeySet pKeySet, Object pValue, byte[] pBytes) Constructor.- Parameters:
pKeySet- the keySetpValue- the value.pBytes- the encrypted bytes
-
-
Method Details
-
getKeySet
Obtain the keySet.- Returns:
- the keySet.
-
getValue
Obtain the value.- Returns:
- the value.
-
getBytes
public byte[] getBytes()Obtain the bytes.- Returns:
- the bytes.
-
adoptEncryption
protected void adoptEncryption(PrometheusEncryptor pEncryptor, PrometheusEncryptedPair pSource) throws OceanusException Adopt Encryption.- Parameters:
pEncryptor- the encryptorpSource- field to adopt encryption from- Throws:
OceanusException- on error
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-
toString
-
equals
-
hashCode
public int hashCode() -
differs
Description copied from interface:MetisDataDifference.MetisDataDiffersTest for difference with another object.- Specified by:
differsin interfaceMetisDataDifference.MetisDataDiffers- Parameters:
pThat- the other object- Returns:
- the difference
-