Class IntermediateClientResponseValue
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.IntermediateClientResponseValue
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class IntermediateClientResponseValue
extends Object
implements Serializable
This class implements a data structure which encapsulates the value of an
intermediate client response value. It may recursively embed intermediate
client response values from upstream servers.
See the documentation in the
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
See the documentation in the
IntermediateClientRequestControl class
for an example of using the intermediate client request and response
controls.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntermediateClientResponseValue(IntermediateClientResponseValue upstreamResponse, String upstreamServerAddress, Boolean upstreamServerSecure, String serverName, String serverSessionID, String serverResponseID) Creates a new intermediate client response value with the provided information. -
Method Summary
Modifier and TypeMethodDescriptiondecode(ASN1Sequence sequence) Decodes the provided ASN.1 sequence as an intermediate client response value.encode()Encodes this intermediate client response value to a form that may be included in the response control.booleanIndicates whether the provided object is equal to this intermediate client response value.Retrieves a string that identifies the server application that created this intermediate client response value.Retrieves a string that may be used to identify the response in the server application.Retrieves a string that may be used to identify the session in the server application.Retrieves the wrapped response from an upstream server, if available.Retrieves the IP address or resolvable name of the upstream server system, if available.inthashCode()Generates a hash code for this intermediate client response value.toString()Retrieves a string representation of this intermediate client response value.voidtoString(StringBuilder buffer) Appends a string representation of this intermediate client response value to the provided buffer.Indicates whether the communication with the communication with the upstream server is secure (i.e., whether communication between the server application and the upstream server is safe from interpretation or undetectable alteration by a third party observer or interceptor).
-
Constructor Details
-
IntermediateClientResponseValue
public IntermediateClientResponseValue(@Nullable IntermediateClientResponseValue upstreamResponse, @Nullable String upstreamServerAddress, @Nullable Boolean upstreamServerSecure, @Nullable String serverName, @Nullable String serverSessionID, @Nullable String serverResponseID) Creates a new intermediate client response value with the provided information.- Parameters:
upstreamResponse- A wrapped intermediate client response from an upstream server. It may benullif there is no wrapped upstream response.upstreamServerAddress- The IP address or resolvable name of the upstream server system. It may benullif there is no upstream server or its address is not available.upstreamServerSecure- Indicates whether communication with the upstream server is secure. It may benullif there is no upstream server or it is not known whether the communication is secure.serverName- An identifier string that summarizes the server application that created this intermediate client response. It may benullif that information is not available.serverSessionID- A string that may be used to identify the session in the server application. It may benullif there is no available session identifier.serverResponseID- A string that may be used to identify the response in the server application. It may benullif there is no available response identifier.
-
-
Method Details
-
getUpstreamResponse
Retrieves the wrapped response from an upstream server, if available.- Returns:
- The wrapped response from an upstream server, or
nullif there is none.
-
getUpstreamServerAddress
Retrieves the IP address or resolvable name of the upstream server system, if available.- Returns:
- The IP address or resolvable name of the upstream server system,
nullif there is no upstream server or its address is not available.
-
upstreamServerSecure
Indicates whether the communication with the communication with the upstream server is secure (i.e., whether communication between the server application and the upstream server is safe from interpretation or undetectable alteration by a third party observer or interceptor).- Returns:
Boolean.TRUEif communication with the upstream server is secure,Boolean.FALSEif it is not secure, ornullif there is no upstream server or it is not known whether the communication is secure.
-
getServerName
Retrieves a string that identifies the server application that created this intermediate client response value.- Returns:
- A string that may be used to identify the server application that created this intermediate client response value.
-
getServerSessionID
Retrieves a string that may be used to identify the session in the server application.- Returns:
- A string that may be used to identify the session in the server
application, or
nullif there is none.
-
getServerResponseID
Retrieves a string that may be used to identify the response in the server application.- Returns:
- A string that may be used to identify the response in the server
application, or
nullif there is none.
-
encode
Encodes this intermediate client response value to a form that may be included in the response control.- Returns:
- An ASN.1 octet string containing the encoded client response value.
-
decode
@NotNull public static IntermediateClientResponseValue decode(@NotNull ASN1Sequence sequence) throws LDAPException Decodes the provided ASN.1 sequence as an intermediate client response value.- Parameters:
sequence- The sequence to be decoded as an intermediate client response value.- Returns:
- The decoded intermediate client response value.
- Throws:
LDAPException- If the provided sequence cannot be decoded as an intermediate client response value.
-
hashCode
Generates a hash code for this intermediate client response value. -
equals
Indicates whether the provided object is equal to this intermediate client response value. It will only be considered equal if the provided object is also an intermediate client response value with all the same fields. -
toString
Retrieves a string representation of this intermediate client response value. -
toString
Appends a string representation of this intermediate client response value to the provided buffer.- Parameters:
buffer- The buffer to which the information is to be appended.
-