Package pygar.zoneable
Class EncryptedClearValue<ValueType>
java.lang.Object
pygar.zoneable.EncryptedClearValue<ValueType>
- Type Parameters:
ValueType
-
public abstract class EncryptedClearValue<ValueType>
extends java.lang.Object
This data type is used for values in a negotiation position and
includes their unencrypted value, their fieldName in the XML schema,
and the type with respect to the encryption system: ftype.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EncryptedClearValue(java.lang.String fieldName, EncryptedFieldTable.EFTYPE ftype, ValueType value)
-
Method Summary
Modifier and Type Method Description abstract EncryptedClearValue<ValueType>
decrypt(java.lang.String encryptedValue, java.lang.String fieldName, EncryptedFieldTable.EFTYPE ftype)
Decrypt the encrypted value in the string according to the specificationabstract java.lang.String
encrypt()
Encypt the value field of the object and return it as a String Note: the function depends on the successful initialization of static member profile in class pygar.configuration.Profile.
-
Field Details
-
Constructor Details
-
EncryptedClearValue
public EncryptedClearValue(java.lang.String fieldName, EncryptedFieldTable.EFTYPE ftype, ValueType value)
-
-
Method Details
-
encrypt
public abstract java.lang.String encrypt()Encypt the value field of the object and return it as a String Note: the function depends on the successful initialization of static member profile in class pygar.configuration.Profile.- Returns:
- encrypted string
-
decrypt
public abstract EncryptedClearValue<ValueType> decrypt(java.lang.String encryptedValue, java.lang.String fieldName, EncryptedFieldTable.EFTYPE ftype)Decrypt the encrypted value in the string according to the specification- Parameters:
encryptedValue
-fieldName
-ftype
-- Returns:
- EncryptedClearValue
-