Record Class PasswordModifyExtendedResult
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.PasswordModifyExtendedResult
- Record Components:
resultCode- The result code.matchedDn- The matched DN associated, which may be empty ornullindicating that none was provided. The returned matched DN will be empty if none was provided (nevernull).diagnosticMessage- The diagnostic message, which may be empty ornull. The returned diagnostic message will beLocalizableMessage.EMPTYif none was provided (nevernull).referralUris- The optional referrals are present in a PasswordModifyExtendedResult if the result code is set toResultCode.REFERRAL, and they are absent with all other result codes.generatedPassword- The newly generated password ornullif the password modify request failed or a generated password was not requested.controls- theListcontaining the controls.cause- The throwable cause, which may benullindicating that none was provided.
- All Implemented Interfaces:
ExtendedResult,ProtocolOp,Response,Result
public record PasswordModifyExtendedResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, ByteString generatedPassword, List<Control> controls, Throwable cause)
extends Record
implements ExtendedResult
The password modify extended result as defined in RFC 3062. The result includes the generated password, if requested,
but only if the modify request succeeded.
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordModifyExtendedResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, ByteString generatedPassword, List<Control> controls, Throwable cause) Creates a newPasswordModifyExtendedResult. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.controls()Returns the value of thecontrolsrecord component.Returns the value of thediagnosticMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedPasswordrecord component.final inthashCode()Returns a hash code value for this object.booleanhasValue()Returnstrueif this extended result has a value.Returns the value of thematchedDnrecord component.oid()Returns the numeric OID, if any, associated with this extended result.Returns the value of thereferralUrisrecord component.Returns the value of theresultCoderecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value, if any, associated with this extended result.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControlsMethods inherited from interface org.forgerock.opendj.ldap.messages.Result
diagnosticMessageAsString, isReferral, isSuccess
-
Constructor Details
-
PasswordModifyExtendedResult
public PasswordModifyExtendedResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, ByteString generatedPassword, List<Control> controls, Throwable cause) Creates a newPasswordModifyExtendedResult.
-
-
Method Details
-
oid
Description copied from interface:ExtendedResultReturns the numeric OID, if any, associated with this extended result.- Specified by:
oidin interfaceExtendedResult- Returns:
- The numeric OID associated with this extended result, or
nullif there is no OID.
-
value
Description copied from interface:ExtendedResultReturns the value, if any, associated with this extended result. Its format is defined by the specification of this extended result.- Specified by:
valuein interfaceExtendedResult- Returns:
- The value associated with this extended result, or
nullif there is no value.
-
hasValue
public boolean hasValue()Description copied from interface:ExtendedResultReturnstrueif this extended result has a value. In some circumstances it may be useful to determine if an extended result has a value, without actually calculating the value and incurring any performance costs.- Specified by:
hasValuein interfaceExtendedResult- Returns:
trueif this extended result has a value, orfalseif there is no value.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
resultCode
Returns the value of theresultCoderecord component.- Specified by:
resultCodein interfaceResult- Returns:
- the value of the
resultCoderecord component
-
matchedDn
Returns the value of thematchedDnrecord component. -
diagnosticMessage
Returns the value of thediagnosticMessagerecord component.- Specified by:
diagnosticMessagein interfaceResult- Returns:
- the value of the
diagnosticMessagerecord component
-
referralUris
Returns the value of thereferralUrisrecord component.- Specified by:
referralUrisin interfaceResult- Returns:
- the value of the
referralUrisrecord component
-
generatedPassword
Returns the value of thegeneratedPasswordrecord component.- Returns:
- the value of the
generatedPasswordrecord component
-
controls
Returns the value of thecontrolsrecord component.- Specified by:
controlsin interfaceProtocolOp- Returns:
- the value of the
controlsrecord component
-
cause
Returns the value of thecauserecord component.
-