public class ValidationListEntry
extends java.lang.Object
Constructor and Description |
---|
ValidationListEntry()
Constructs a ValidationListEntry.
|
ValidationListEntry(byte[] buffer,
int offset)
Constructs a ValidationListEntry from a structure stored as IBM i bytes.
|
Modifier and Type | Method and Description |
---|---|
ValidationListAttributeInfo |
getAttributeInfo()
Returns the object containing all attribute information associated with the entry.
|
int |
getByteLength()
Returns the total length of the corresponding structure when this object is
written to IBM i bytes for use by the validation list APIs.
|
ValidationListDataToEncrypt |
getDataToEncrypt()
Returns the information to encrypt when the entry is subsequently inserted or updated.
|
ValidationListTranslatedData |
getEncryptedData()
Returns the information currently encrypted for the entry in the validation list.
|
ValidationListTranslatedData |
getEntryID()
Returns the translated data containing the entry identifier.
|
ValidationListTranslatedData |
getUnencryptedData()
Returns the unencrypted data for the entry.
|
void |
init(byte[] buffer,
int offset)
Initialize a ValidationListEntry from a structure stored as IBM i bytes.
|
void |
setAttributeInfo(ValidationListAttributeInfo info)
Sets the object containing all attribute information associated with the entry.
|
void |
setDataToEncrypt(ValidationListDataToEncrypt dataToEncrypt)
Sets the information to encrypt when the entry is subsequently inserted or updated.
|
void |
setEncryptedData(ValidationListTranslatedData encryptedData)
Sets the information currently encrypted for the entry in the validation list.
|
void |
setEntryID(ValidationListTranslatedData entryID)
Sets the translated data containing the entry identifier.
|
void |
setUnencryptedData(ValidationListTranslatedData data)
Sets the unencrypted data for the entry.
|
public ValidationListEntry()
public ValidationListEntry(byte[] buffer, int offset)
The offset indicates the starting position of the structure in the given buffer.
buffer
- byte[]offset
- intpublic ValidationListAttributeInfo getAttributeInfo()
Attributes and associated values can be assigned by the application prior to adding an entry. When finding an entry, the identifiers for attributes to retrieve are set by the application prior to the find. The corresponding attribute values are filled in as a result of the find operation.
public int getByteLength()
Note: The length 1724 is dictated by the API definition (i.e. QSYFDVLE).
public ValidationListDataToEncrypt getDataToEncrypt()
This differs from the EncryptedData property in that the latter, if present, reflects the data currently encrypted for the entry.
If the QsyEncryptData attribute is set to 0, the data to be encrypted can only be used to verify an entry and cannot be retrieved later. This is the default.
If the attribute was set to 1, the data to be encrypted can be used to verify an entry and can potentially be returned on a find operation. The system value QRETSVRSEC (Retain system security data) has the final say in determining if the data can be retrieved from the entry. If the system value is set to 0 (Do not retain data), the entry will be added, but the data to be encrypted will not be stored with the entry and cannot be retrieved. If the system value is set to 1 (Retain data), then the data to be encrypted will be stored (in encrypted form) with the entry and can be retrieved.
public ValidationListTranslatedData getEncryptedData()
Note: The encrypted data may or may not be retrievable based on the value set for the QsyEncryptData attribute when the entry was inserted.
getDataToEncrypt()
public ValidationListTranslatedData getEntryID()
public ValidationListTranslatedData getUnencryptedData()
public void init(byte[] buffer, int offset)
The offset indicates the starting position of the structure in the given buffer.
buffer
- byte[]offset
- intpublic void setAttributeInfo(ValidationListAttributeInfo info)
Attributes and associated values can be assigned by the application prior to adding an entry. When finding an entry, the identifiers for attributes to retrieve are set by the application prior to the find. The corresponding attribute values are filled in as a result of the find operation.
info
- ValidationListAttributeInfopublic void setDataToEncrypt(ValidationListDataToEncrypt dataToEncrypt)
This differs from the EncryptedData property in that the latter, if present, reflects the data currently encrypted for the entry.
If the QsyEncryptData attribute is set to 0, the data to be encrypted can only be used to verify an entry and cannot be retrieved later. This is the default.
If the attribute was set to 1, the data to be encrypted can be used to verify an entry and can potentially be returned on a find operation. The system value QRETSVRSEC (Retain system security data) has the final say in determining if the data can be retrieved from the entry. If the system value is set to 0 (Do not retain data), the entry will be added, but the data to be encrypted will not be stored with the entry and cannot be retrieved. If the system value is set to 1 (Retain data), then the data to be encrypted will be stored (in encrypted form) with the entry and can be retrieved.
dataToEncrypt
- ValidationListDataToEncryptpublic void setEncryptedData(ValidationListTranslatedData encryptedData)
Note: The encrypted data may or may not be retrievable based on the value set for the QsyEncryptData attribute when the entry was inserted.
encryptedData
- ValidationListTranslatedDatapublic void setEntryID(ValidationListTranslatedData entryID)
entryID
- ValidationListTranslatedDatapublic void setUnencryptedData(ValidationListTranslatedData data)
data
- ValidationListTranslatedData