@Generated(value="com.neeve.adm.AdmJsonGenerator", date="Fri Dec 05 11:53:59 EST 2025") @AdmGenerated(encoding="Json", compatLevel="4.1.0", admVersion="Unknown Version", date="12/5/25 11:53 AM", buildInfo="nvx-eagle-2.9-SNAPSHOT Json Encoding") @AdmFactoryInfo(factoryClass=MessageFactory.class, vfid=132, ofid=132, typeId=1003) public final class Credentials extends Object implements ICredentials
| ADM Type | Embedded Entity |
| Factory | MessageFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| password | String | 32736 | No doc provided. |
| username | String | 32737 | No doc provided. |
| Modifier and Type | Field and Description |
|---|---|
static Credentials[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
Credentials() |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
acquire() |
void |
clearContent() |
void |
clearPassword()
Clears the value of 'password'.
|
void |
clearUsername()
Clears the value of 'username'.
|
Object |
clone()
Creates a clone of this object.
|
Credentials |
copy() |
void |
copyInto(Credentials copy) |
static Credentials |
create() |
static Credentials |
createFrom(byte[] serializedJson) |
static Credentials |
createFromJson(String json) |
static Credentials |
createFromSerializedJson(byte[] serializedJson) |
static Credentials |
createFromSerializedJson(ByteBuffer serializedJson) |
Credentials |
deserializeFromByteArray(byte[] array) |
Credentials |
deserializeFromByteBuffer(ByteBuffer buffer) |
Credentials |
deserializeFromNative(long address,
int addressOffset,
int length) |
void |
dispose() |
boolean |
getIsReadOnly() |
int |
getOwnerCount() |
String |
getPassword()
Gets the value of 'password'.
|
static int |
getPasswordFieldId() |
<T extends XString> |
getPasswordTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getPasswordTo(XString val)
Copies the value of 'password' into the provided XString.
|
XString |
getPasswordUnsafe()
Gets the raw value of 'password'.
|
int |
getSerializeToNativeLength() |
String |
getUsername()
Gets the value of 'username'.
|
static int |
getUsernameFieldId() |
<T extends XString> |
getUsernameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getUsernameTo(XString val)
Copies the value of 'username' into the provided XString.
|
XString |
getUsernameUnsafe()
Gets the raw value of 'username'.
|
void |
getValidationErrors(List<XString> results,
String errorPrefix) |
boolean |
hasPassword()
Checks for the presence of 'password'.
|
boolean |
hasUsername()
Checks for the presence of 'username'.
|
boolean |
isBufferBacked() |
boolean |
isReferenceCounted() |
boolean |
isValid() |
void |
lendPassword(XString val)
Lends the value of 'password' to this object.
|
void |
lendUsername(XString val)
Lends the value of 'username' to this object.
|
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
int |
serializeToNative(long address,
int addressOffset) |
void |
setAsReadOnly() |
void |
setPassword(String val)
Sets the value of 'password'.
|
void |
setPasswordFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setPasswordFrom(XString val)
Copies the provided XString value into this object's 'password'.
|
void |
setUsername(String val)
Sets the value of 'username'.
|
void |
setUsernameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setUsernameFrom(XString val)
Copies the provided XString value into this object's 'username'.
|
String |
toString() |
public static final Credentials[] EMPTY_ARRAY
public static Credentials create()
public static Credentials createFromJson(String json)
public static Credentials createFromSerializedJson(ByteBuffer serializedJson)
public static Credentials createFromSerializedJson(byte[] serializedJson)
public static Credentials createFrom(byte[] serializedJson)
public final void clearContent()
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public static final int getUsernameFieldId()
public final void setUsername(String val)
ICredentialssetUsername in interface ICredentialsval - The value to set.public final String getUsername()
ICredentialsgetUsername in interface ICredentialspublic final void lendUsername(XString val)
ICredentialsThis method is equivalent to setUsername except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendUsername in interface ICredentialsval - The value to set.public final void setUsernameFrom(long val)
ICredentials
NOTE:
This is the same as calling ICredentials.setUsername(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setUsernameFrom in interface ICredentialspublic final <T extends XString> T getUsernameTo(XString.Factory<T> factory)
ICredentials
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getUsernameTo in interface ICredentialsfactory - The factory from which to get the XString to copy into and returnnull.public final void setUsernameFrom(XString val)
ICredentials
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ICredentials.setUsername(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setUsernameFrom in interface ICredentialspublic final void getUsernameTo(XString val)
ICredentials
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ICredentials.getUsername() bec
because it can avoid decoding the value into an String.
getUsernameTo in interface ICredentialsICredentials.getUsername()public final XString getUsernameUnsafe()
ICredentials
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getUsernameUnsafe in interface ICredentialsICredentials.getUsername()public final void clearUsername()
ICredentialsclearUsername in interface ICredentialsICredentials.setUsername(String)public final boolean hasUsername()
ICredentialshasUsername in interface ICredentialsICredentials.getUsername()public static final int getPasswordFieldId()
public final void setPassword(String val)
ICredentialssetPassword in interface ICredentialsval - The value to set.public final String getPassword()
ICredentialsgetPassword in interface ICredentialspublic final void lendPassword(XString val)
ICredentialsThis method is equivalent to setPassword except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendPassword in interface ICredentialsval - The value to set.public final void setPasswordFrom(long val)
ICredentials
NOTE:
This is the same as calling ICredentials.setPassword(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setPasswordFrom in interface ICredentialspublic final <T extends XString> T getPasswordTo(XString.Factory<T> factory)
ICredentials
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getPasswordTo in interface ICredentialsfactory - The factory from which to get the XString to copy into and returnnull.public final void setPasswordFrom(XString val)
ICredentials
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ICredentials.setPassword(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setPasswordFrom in interface ICredentialspublic final void getPasswordTo(XString val)
ICredentials
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ICredentials.getPassword() bec
because it can avoid decoding the value into an String.
getPasswordTo in interface ICredentialsICredentials.getPassword()public final XString getPasswordUnsafe()
ICredentials
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getPasswordUnsafe in interface ICredentialsICredentials.getPassword()public final void clearPassword()
ICredentialsclearPassword in interface ICredentialsICredentials.setPassword(String)public final boolean hasPassword()
ICredentialshasPassword in interface ICredentialsICredentials.getPassword()public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address,
int addressOffset)
public final Credentials deserializeFromByteArray(byte[] array)
public final Credentials deserializeFromByteBuffer(ByteBuffer buffer)
public final Credentials deserializeFromNative(long address, int addressOffset, int length)
public final boolean isReferenceCounted()
public final Credentials acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final Credentials copy()
public final void copyInto(Credentials copy)
public final boolean isValid()
isValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
getValidationErrors in interface IRogValidatableCopyright © 2016 Neeve Research, LLC. All Rights Reserved.