@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class IntermediateClientResponseValue extends java.lang.Object implements java.io.Serializable
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.
IntermediateClientRequestControl
class
for an example of using the intermediate client request and response
controls.Constructor and Description |
---|
IntermediateClientResponseValue(IntermediateClientResponseValue upstreamResponse,
java.lang.String upstreamServerAddress,
java.lang.Boolean upstreamServerSecure,
java.lang.String serverName,
java.lang.String serverSessionID,
java.lang.String serverResponseID)
Creates a new intermediate client response value with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
static IntermediateClientResponseValue |
decode(ASN1Sequence sequence)
Decodes the provided ASN.1 sequence as an intermediate client response
value.
|
ASN1Sequence |
encode()
Encodes this intermediate client response value to a form that may be
included in the response control.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this intermediate client
response value.
|
java.lang.String |
getServerName()
Retrieves a string that identifies the server application that created this
intermediate client response value.
|
java.lang.String |
getServerResponseID()
Retrieves a string that may be used to identify the response in the server
application.
|
java.lang.String |
getServerSessionID()
Retrieves a string that may be used to identify the session in the server
application.
|
IntermediateClientResponseValue |
getUpstreamResponse()
Retrieves the wrapped response from an upstream server, if available.
|
java.lang.String |
getUpstreamServerAddress()
Retrieves the IP address or resolvable name of the upstream server system,
if available.
|
int |
hashCode()
Generates a hash code for this intermediate client response value.
|
java.lang.String |
toString()
Retrieves a string representation of this intermediate client response
value.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this intermediate client response value
to the provided buffer.
|
java.lang.Boolean |
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).
|
public IntermediateClientResponseValue(@Nullable IntermediateClientResponseValue upstreamResponse, @Nullable java.lang.String upstreamServerAddress, @Nullable java.lang.Boolean upstreamServerSecure, @Nullable java.lang.String serverName, @Nullable java.lang.String serverSessionID, @Nullable java.lang.String serverResponseID)
upstreamResponse
- A wrapped intermediate client response from
an upstream server. It may be null
if there is no wrapped upstream response.upstreamServerAddress
- The IP address or resolvable name of the
upstream server system. It may be
null
if there is no upstream server
or its address is not available.upstreamServerSecure
- Indicates whether communication with the
upstream server is secure. It may be
null
if 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 be
null
if that information is not
available.serverSessionID
- A string that may be used to identify the
session in the server application. It may
be null
if there is no available
session identifier.serverResponseID
- A string that may be used to identify the
response in the server application. It may
be null
if there is no available
response identifier.@Nullable public IntermediateClientResponseValue getUpstreamResponse()
null
if
there is none.@Nullable public java.lang.String getUpstreamServerAddress()
null
if there is no upstream server or its address is not
available.@Nullable public java.lang.Boolean upstreamServerSecure()
Boolean.TRUE
if communication with the upstream server is
secure, Boolean.FALSE
if it is not secure, or
null
if there is no upstream server or it is not known
whether the communication is secure.@Nullable public java.lang.String getServerName()
@Nullable public java.lang.String getServerSessionID()
null
if there is none.@Nullable public java.lang.String getServerResponseID()
null
if there is none.@NotNull public ASN1Sequence encode()
@NotNull public static IntermediateClientResponseValue decode(@NotNull ASN1Sequence sequence) throws LDAPException
sequence
- The sequence to be decoded as an intermediate client
response value.LDAPException
- If the provided sequence cannot be decoded as an
intermediate client response value.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.true
if the provided object is considered equal to this
intermediate client response value, or false
if not.@NotNull public java.lang.String toString()
toString
in class java.lang.Object