@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public abstract class ReplaceCertificateExtendedResult extends ExtendedResult
ReplaceListenerCertificateExtendedRequest
,
ReplaceInterServerCertificateExtendedRequest
,
PurgeRetiredListenerCertificatesExtendedRequest
, and
PurgeRetiredInterServerCertificatesExtendedRequest
.
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.
ReplaceCertificateResponseValue ::= SEQUENCE { toolOutput [16] OCTET STRING OPTIONAL, ... }
NO_CONTROLS
Modifier | Constructor and Description |
---|---|
protected |
ReplaceCertificateExtendedResult(ExtendedResult extendedResult)
Creates a new replace certificate extended result that is decoded from the
provided extended result.
|
protected |
ReplaceCertificateExtendedResult(int messageID,
ResultCode resultCode,
java.lang.String diagnosticMessage,
java.lang.String matchedDN,
java.lang.String[] referralURLs,
java.lang.String oid,
java.lang.String toolOutput,
Control... responseControls)
Creates a new replace certificate extended result with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
static ASN1OctetString |
encodeValue(java.lang.String oid,
java.lang.String toolOutput)
Encodes a value for this extended result, if appropriate.
|
java.lang.String |
getToolOutput()
Retrieves the output (a combined representation of both standard output and
standard error) obtained from running the
replace-certificate tool,
if available. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this replace certificate result to the
provided buffer.
|
getExtendedResultName, getOID, getValue, hasValue, toString
getDiagnosticMessage, getMatchedDN, getMessageID, getOperationType, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl
protected ReplaceCertificateExtendedResult(@NotNull ExtendedResult extendedResult) throws LDAPException
extendedResult
- The generic extended result to decode as a replace
certificate extended result. It must not be
null
.LDAPException
- If the provided extended result cannot be decoded
as a replace certificate extended result.protected ReplaceCertificateExtendedResult(int messageID, @NotNull ResultCode resultCode, @Nullable java.lang.String diagnosticMessage, @Nullable java.lang.String matchedDN, @Nullable java.lang.String[] referralURLs, @Nullable java.lang.String oid, @Nullable java.lang.String toolOutput, @Nullable Control... responseControls)
messageID
- The message ID for the LDAP message that is
associated with this LDAP result.resultCode
- The result code from the response.diagnosticMessage
- The diagnostic message from the response, if
available.matchedDN
- The matched DN from the response, if available.referralURLs
- The set of referral URLs from the response, if
available.oid
- The OID to use for the extended result. It may
be null
if no OID should be used.toolOutput
- The output (a combined representation of both
standard output and standard error) obtained
from running the replace-certificate
tool. It may be null
if request
processing failed before running the tool.responseControls
- The set of controls to include in the extended
result. It may be null
or empty if no
response controls should be included.@Nullable public static ASN1OctetString encodeValue(@Nullable java.lang.String oid, @Nullable java.lang.String toolOutput)
oid
- The OID to use for the extended result. It may be
null
if no OID should be used.toolOutput
- The output obtained from running the
replace-certificate
tool. It may be
null
if request processing failed before
running the tool.null
if
no value should be included.@Nullable public java.lang.String getToolOutput()
replace-certificate
tool,
if available.replace-certificate
tool, or null
if no output is available (e.g., because
an error occurred before the tool could be invoked).public final void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface LDAPResponse
toString
in class ExtendedResult
buffer
- The buffer to which the information should be appended. It
must not be null
.