Record Class StartTlsExtendedResult
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.StartTlsExtendedResult
- Record Components:
resultCode
- The result code.matchedDn
- The matched DN associated, which may be empty ornull
indicating 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.EMPTY
if none was provided (nevernull
).referralUris
- The optional referrals are present in a StartTlsExtendedResult if the result code is set toResultCode.REFERRAL
, and they are absent with all other result codes.controls
- theList
containing the controls.cause
- The throwable cause, which may benull
indicating that none was provided.sslOptions
- TheSslOptions
which should be used to secure the connection on TLS layer, ornull
if the request failed.
- All Implemented Interfaces:
ExtendedResult
,ProtocolOp
,Response
,Result
public record StartTlsExtendedResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, List<Control> controls, Throwable cause, SslOptions sslOptions)
extends Record
implements ExtendedResult
The start tls extended result as defined in RFC 4511. The result includes
SslOptions
which will be used to
enable the TLS layer only if the start-tls request succeeded.-
Constructor Summary
ConstructorsConstructorDescriptionStartTlsExtendedResult
(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, List<Control> controls, Throwable cause, SslOptions sslOptions) Creates a newStartTlsExtendedResult
. -
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns the value of thecause
record component.controls()
Returns the value of thecontrols
record component.Returns the value of thediagnosticMessage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasValue()
Returnstrue
if this extended result has a value.Returns the value of thematchedDn
record component.oid()
Returns the numeric OID, if any, associated with this extended result.Returns the value of thereferralUris
record component.Returns the value of theresultCode
record component.Returns the value of thesslOptions
record component.final String
toString()
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, wait
Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
Methods inherited from interface org.forgerock.opendj.ldap.messages.Result
diagnosticMessageAsString, isReferral, isSuccess
-
Constructor Details
-
StartTlsExtendedResult
public StartTlsExtendedResult(ResultCode resultCode, String matchedDn, LocalizableMessage diagnosticMessage, List<String> referralUris, List<Control> controls, Throwable cause, SslOptions sslOptions) Creates a newStartTlsExtendedResult
.
-
-
Method Details
-
oid
Description copied from interface:ExtendedResult
Returns the numeric OID, if any, associated with this extended result.- Specified by:
oid
in interfaceExtendedResult
- Returns:
- The numeric OID associated with this extended result, or
null
if there is no OID.
-
value
Description copied from interface:ExtendedResult
Returns the value, if any, associated with this extended result. Its format is defined by the specification of this extended result.- Specified by:
value
in interfaceExtendedResult
- Returns:
- The value associated with this extended result, or
null
if there is no value.
-
hasValue
public boolean hasValue()Description copied from interface:ExtendedResult
Returnstrue
if 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:
hasValue
in interfaceExtendedResult
- Returns:
true
if this extended result has a value, orfalse
if 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 theresultCode
record component.- Specified by:
resultCode
in interfaceResult
- Returns:
- the value of the
resultCode
record component
-
matchedDn
Returns the value of thematchedDn
record component. -
diagnosticMessage
Returns the value of thediagnosticMessage
record component.- Specified by:
diagnosticMessage
in interfaceResult
- Returns:
- the value of the
diagnosticMessage
record component
-
referralUris
Returns the value of thereferralUris
record component.- Specified by:
referralUris
in interfaceResult
- Returns:
- the value of the
referralUris
record component
-
controls
Returns the value of thecontrols
record component.- Specified by:
controls
in interfaceProtocolOp
- Returns:
- the value of the
controls
record component
-
cause
Returns the value of thecause
record component. -
sslOptions
Returns the value of thesslOptions
record component.- Returns:
- the value of the
sslOptions
record component
-