public class ValidationListAttributeInfo
extends java.lang.Object
Constructor and Description |
---|
ValidationListAttributeInfo()
Constructs a ValidationListAttributeInfo.
|
ValidationListAttributeInfo(ValidationListAttribute[] attributes)
Constructs a ValidationListAttributeInfo with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
ValidationListAttribute[] |
getAttributes()
Returns the attributes assigned to the receiver.
|
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.
|
int |
getByteLengthForNativeCall()
Returns the total length of the corresponding structure when this object is
written to IBM i bytes for use by the validation list APIs.
|
void |
setAttributes(ValidationListAttribute[] attributes)
Sets the attributes assigned to the receiver.
|
void |
setAttributesData(byte[] buffer,
int offset)
Sets the data for assigned attributes from the IBM i bytes in the specified buffer.
|
byte[] |
toBytes()
Returns the byte array resulting from converting this object to a structure
usable by the system APIs.
|
int |
toBytes(byte[] buffer,
int offset)
Converts this object to a structure usable by the system APIs.
|
public ValidationListAttributeInfo()
public ValidationListAttributeInfo(ValidationListAttribute[] attributes)
attributes
- ValidationListAttribute[]public ValidationListAttribute[] getAttributes()
public int getByteLength()
public int getByteLengthForNativeCall()
public void setAttributes(ValidationListAttribute[] attributes)
attributes
- ValidationListAttribute[]public void setAttributesData(byte[] buffer, int offset)
This method is called when finding an entry with specific attributes. The attribute identifiers are provided as input to the API, and a buffer is returned with the corresponding attribute values. It is expected that this object was also used to specify the attributes to retrieve. That way, the contents and order of attribute values in the buffer should exactly match those assigned to this object.
Refer to documentation for the QSYFDVLE Security API for a complete description of parameters.
buffer
- byte[]offset
- intpublic byte[] toBytes()
public int toBytes(byte[] buffer, int offset)
The IBM i bytes are inserted into the buffer starting at the given offset. The total number of bytes inserted is returned.
buffer
- byte[]offset
- int