Record Class StartTlsExtendedRequest
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.StartTlsExtendedRequest
- Record Components:
sslOptions
- the SslOptions that should be used when installing the TLS layer. This is only used client-side when interacting with a remove server using a Connection. In a server context, it always returnsnull
.controls
- theList
containing the controls.
- All Implemented Interfaces:
ExtendedRequest<ExtendedResult>
,ProtocolOp
,Request
public record StartTlsExtendedRequest(SslOptions sslOptions, List<Control> controls)
extends Record
implements ExtendedRequest<ExtendedResult>
The start TLS extended request as defined in RFC 4511. The Start Transport
Layer Security (StartTLS) operation's purpose is to initiate installation of
a TLS layer.
Use an SslOptions
when setting up LDAP options needed to use StartTLS.
TrustManagers
has methods you can use to set the trust manager for the SSL context builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.forgerock.opendj.ldap.messages.Request
Request.RequestType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtendedRequestDecoder<StartTlsExtendedRequest,
ExtendedResult> A decoder which can be used to decode start TLS extended operation requests.static final String
The OID for the start TLS extended operation request. -
Constructor Summary
ConstructorsConstructorDescriptionStartTlsExtendedRequest
(SslOptions sslOptions, List<Control> controls) Creates a newStartTlsExtendedRequest
. -
Method Summary
Modifier and TypeMethodDescriptioncontrols()
Returns the value of thecontrols
record component.final boolean
Indicates whether some other object is "equal to" this one.getOid()
Returns the numeric OID associated with this extended request.Returns a decoder which can be used to decoded responses to this extended request.getValue()
Returns the value, if any, associated with this extended request.final int
hashCode()
Returns a hash code value for this object.boolean
hasValue()
Returnstrue
if this extended request has a value.Returns the value of thesslOptions
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.forgerock.opendj.ldap.messages.ExtendedRequest
accept, getType
Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
-
Field Details
-
DECODER
A decoder which can be used to decode start TLS extended operation requests. -
OID
The OID for the start TLS extended operation request.- See Also:
-
-
Constructor Details
-
StartTlsExtendedRequest
Creates a newStartTlsExtendedRequest
.
-
-
Method Details
-
getOid
Description copied from interface:ExtendedRequest
Returns the numeric OID associated with this extended request.- Specified by:
getOid
in interfaceExtendedRequest<ExtendedResult>
- Returns:
- The numeric OID associated with this extended request.
-
getResultDecoder
Description copied from interface:ExtendedRequest
Returns a decoder which can be used to decoded responses to this extended request.- Specified by:
getResultDecoder
in interfaceExtendedRequest<ExtendedResult>
- Returns:
- A decoder which can be used to decoded responses to this extended request.
-
getValue
Description copied from interface:ExtendedRequest
Returns the value, if any, associated with this extended request. Its format is defined by the specification of this extended request.- Specified by:
getValue
in interfaceExtendedRequest<ExtendedResult>
- Returns:
- The value associated with this extended request, or
null
if there is no value.
-
hasValue
public boolean hasValue()Description copied from interface:ExtendedRequest
Returnstrue
if this extended request has a value. In some circumstances it may be useful to determine if an extended request has a value, without actually calculating the value and incurring any performance costs.- Specified by:
hasValue
in interfaceExtendedRequest<ExtendedResult>
- Returns:
true
if this extended request 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)
. -
sslOptions
Returns the value of thesslOptions
record component.- Returns:
- the value of the
sslOptions
record component
-
controls
Returns the value of thecontrols
record component.- Specified by:
controls
in interfaceProtocolOp
- Returns:
- the value of the
controls
record component
-