public interface PasswordModifyExtendedResult extends ExtendedResult
Modifier and Type | Method and Description |
---|---|
PasswordModifyExtendedResult |
addControl(Control control)
Adds the provided control to this protocol-op.
|
PasswordModifyExtendedResult |
addControls(Iterable<? extends Control> controls)
Adds the provided controls to this protocol-op.
|
PasswordModifyExtendedResult |
addReferralUri(String uri)
Adds the provided referral URI to this result.
|
Throwable |
getCause()
Returns the throwable cause associated with this result if available.
|
<C extends Control> |
getControl(ControlDecoder<C> decoder,
DecodeOptions options)
Decodes and returns the first control in this protocol-op having an OID
corresponding to the provided control decoder.
|
List<Control> |
getControls()
Returns a
List containing the controls included with this
protocol-op. |
LocalizableMessage |
getDiagnosticMessage()
Returns the diagnostic message associated with this result.
|
String |
getDiagnosticMessageAsString()
Returns the diagnostic message associated with this result as a string.
|
byte[] |
getGeneratedPassword()
Returns the newly generated password, but only if the password modify
request succeeded and a generated password was requested.
|
String |
getMatchedDn()
Returns the matched DN associated with this result.
|
String |
getOid()
Returns the numeric OID, if any, associated with this extended result.
|
List<String> |
getReferralUris()
Returns a
List containing the referral URIs included with this
result. |
ResultCode |
getResultCode()
Returns the result code associated with this result.
|
ByteString |
getValue()
Returns the value, if any, associated with this extended result.
|
boolean |
hasValue()
Returns
true if this extended result has a value. |
boolean |
isReferral()
Indicates whether a referral needs to be chased in order to
complete the operation.
|
boolean |
isSuccess()
Indicates whether the request succeeded or not.
|
PasswordModifyExtendedResult |
setCause(Throwable cause)
Sets the throwable cause associated with this result if available.
|
PasswordModifyExtendedResult |
setDiagnosticMessage(CharSequence message)
Sets the diagnostic message associated with this result.
|
PasswordModifyExtendedResult |
setGeneratedPassword(byte[] password)
Sets the generated password.
|
PasswordModifyExtendedResult |
setGeneratedPassword(char[] password)
Sets the generated password.
|
PasswordModifyExtendedResult |
setMatchedDn(Dn dn)
Sets the matched DN associated with this result.
|
PasswordModifyExtendedResult |
setMatchedDn(String dn)
Sets the matched DN associated with this result.
|
PasswordModifyExtendedResult |
setResultCode(ResultCode resultCode)
Sets the result code associated with this result.
|
containsControl, getControl
PasswordModifyExtendedResult addControl(Control control)
ProtocolOp
addControl
in interface ExtendedResult
addControl
in interface ProtocolOp
addControl
in interface Response
addControl
in interface Result
control
- The control to be added to this protocol-op.PasswordModifyExtendedResult addControls(Iterable<? extends Control> controls)
ProtocolOp
addControls
in interface ExtendedResult
addControls
in interface ProtocolOp
addControls
in interface Response
addControls
in interface Result
controls
- The controls to be added to this protocol-op.PasswordModifyExtendedResult addReferralUri(String uri)
Result
addReferralUri
in interface ExtendedResult
addReferralUri
in interface Result
uri
- The referral URI to be added.Throwable getCause()
Result
getCause
in interface ExtendedResult
getCause
in interface Result
null
if none was provided.<C extends Control> C getControl(ControlDecoder<C> decoder, DecodeOptions options) throws DecodeException
ProtocolOp
getControl
in interface ExtendedResult
getControl
in interface ProtocolOp
getControl
in interface Result
C
- The type of control to be decoded and returned.decoder
- The control decoder.options
- The set of decode options which should be used when decoding
the control.null
if the control is not
included with this protocol-op.DecodeException
- If the control could not be decoded because it was malformed in some way
(e.g. the control value was missing, or its content could not be decoded).List<Control> getControls()
ProtocolOp
List
containing the controls included with this
protocol-op. The returned List
may be modified if permitted by this
protocol-op.getControls
in interface ExtendedResult
getControls
in interface ProtocolOp
getControls
in interface Result
List
containing the controls.LocalizableMessage getDiagnosticMessage()
Result
getDiagnosticMessage
in interface ExtendedResult
getDiagnosticMessage
in interface Result
null
).String getDiagnosticMessageAsString()
Result
getDiagnosticMessageAsString
in interface ExtendedResult
getDiagnosticMessageAsString
in interface Result
null
).byte[] getGeneratedPassword()
null
if the password
modify request failed or a generated password was not requested.String getMatchedDn()
Result
getMatchedDn
in interface ExtendedResult
getMatchedDn
in interface Result
null
).String getOid()
ExtendedResult
getOid
in interface ExtendedResult
null
if there is no OID.List<String> getReferralUris()
Result
List
containing the referral URIs included with this
result. The returned List
may be modified if permitted by this
result.getReferralUris
in interface ExtendedResult
getReferralUris
in interface Result
List
containing the referral URIs.ResultCode getResultCode()
Result
getResultCode
in interface ExtendedResult
getResultCode
in interface Result
ByteString getValue()
ExtendedResult
getValue
in interface ExtendedResult
null
if there is no value.boolean hasValue()
ExtendedResult
true
if this extended result has a value. In some
circumstances it may be useful to determine if a extended result has a
value, without actually calculating the value and incurring any
performance costs.hasValue
in interface ExtendedResult
true
if this extended result has a value, or
false
if there is no value.boolean isReferral()
Result
Specifically, this method returns true
if the result code is
equal to ResultCode.REFERRAL
.
isReferral
in interface ExtendedResult
isReferral
in interface Result
true
if a referral needs to be chased, otherwise
false
.boolean isSuccess()
Result
isSuccess
in interface ExtendedResult
isSuccess
in interface Result
true
if the request succeeded, otherwise false
.PasswordModifyExtendedResult setCause(Throwable cause)
Result
setCause
in interface ExtendedResult
setCause
in interface Result
cause
- The throwable cause, which may be null
indicating that
none was provided.PasswordModifyExtendedResult setDiagnosticMessage(CharSequence message)
Result
setDiagnosticMessage
in interface ExtendedResult
setDiagnosticMessage
in interface Result
message
- The diagnostic message, which may be empty or null
indicating that none was provided.PasswordModifyExtendedResult setGeneratedPassword(byte[] password)
password
- The generated password, or null
if there is no
generated password associated with this result.UnsupportedOperationException
- If this password modify extended result does not permit the
generated password to be set.PasswordModifyExtendedResult setGeneratedPassword(char[] password)
password
- The generated password, or null
if there is no
generated password associated with this result.UnsupportedOperationException
- If this password modify extended result does not permit the
generated password to be set.PasswordModifyExtendedResult setMatchedDn(String dn)
Result
setMatchedDn
in interface ExtendedResult
setMatchedDn
in interface Result
dn
- The matched DN associated, which may be empty or null
indicating that none was provided.PasswordModifyExtendedResult setMatchedDn(Dn dn)
Result
setMatchedDn
in interface ExtendedResult
setMatchedDn
in interface Result
dn
- The matched DN associated, which may be empty or null
indicating that none was provided.PasswordModifyExtendedResult setResultCode(ResultCode resultCode)
Result
setResultCode
in interface ExtendedResult
setResultCode
in interface Result
resultCode
- The result code.Copyright 2010-2022 ForgeRock AS.