@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ReplaceInterServerCertificateExtendedRequest extends ExtendedRequest
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.
ReplaceInterServerCertificateValue ::= SEQUENCE { keyStoreContent CHOICE { keyStoreFile [0] KeyStoreFileSequence, keyStoreData [1] KeyStoreDataSequence, certificateData [2] CertificateDataSequence, ... }, skipCertificateValidation [16] BOOLEAN DEFAULT FALSE, ... } KeyStoreFileSequence ::= SEQUENCE { path [8] OCTET STRING, keyStorePIN [9] OCTET STRING, privateKeyPIN [10] OCTET STRING OPTIONAL, keyStoreType [11] OCTET STRING OPTIONAL, sourceCertificateAlias [12] OCTET STRING OPTIONAL, ... } KeyStoreDataSequence ::= SEQUENCE { keyStoreData [13] OCTET STRING, keyStorePIN [9] OCTET STRING, privateKeyPIN [10] OCTET STRING OPTIONAL, keyStoreType [11] OCTET STRING OPTIONAL, sourceCertificateAlias [12] OCTET STRING OPTIONAL, ... } CertificateDataSequence ::= SEQUENCE { certificateChain [14] SEQUENCE SIZE (1..MAX) OF OCTET STRING, privateKey [15] OCTET STRING OPTIONAL, ... }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPLACE_INTER_SERVER_CERT_REQUEST_OID
The OID (1.3.6.1.4.1.30221.2.6.69) for the replace inter-server certificate
extended request.
|
TYPE_EXTENDED_REQUEST_OID, TYPE_EXTENDED_REQUEST_VALUE
Constructor and Description |
---|
ReplaceInterServerCertificateExtendedRequest(ExtendedRequest request)
Creates a new replace inter-server certificate extended request that is
decoded from the provided generic extended request.
|
ReplaceInterServerCertificateExtendedRequest(ReplaceCertificateKeyStoreContent keyStoreContent,
boolean skipCertificateValidation,
Control... requestControls)
Creates a new replace inter-server certificate extended request with the
provided information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExtendedRequestName()
Retrieves the user-friendly name for the extended request, if available.
|
ReplaceCertificateKeyStoreContent |
getKeyStoreContent()
Retrieves an object with information about how the server should obtain the
new inter-server certificate data.
|
ReplaceInterServerCertificateExtendedResult |
process(LDAPConnection connection,
int depth)
Sends this extended request to the directory server over the provided
connection and returns the associated response.
|
boolean |
skipCertificateValidation()
Indicates whether the server should skip validation processing for the
new certificate chain.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this request to the provided buffer.
|
duplicate, duplicate, encodeProtocolOp, getLastMessageID, getOID, getOperationType, getProtocolOpType, getValue, hasValue, responseReceived, toCode, writeTo
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getReferralConnector, getReferralConnectorInternal, getReferralDepth, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setReferralDepth, setResponseTimeoutMillis, toString
@NotNull public static final java.lang.String REPLACE_INTER_SERVER_CERT_REQUEST_OID
public ReplaceInterServerCertificateExtendedRequest(@NotNull ReplaceCertificateKeyStoreContent keyStoreContent, boolean skipCertificateValidation, @Nullable Control... requestControls)
keyStoreContent
- An object with information about how the server should obtain
the new inter-server certificate data. It must not be
null
.skipCertificateValidation
- Indicates whether to skip validation for the new certificate
chain.requestControls
- The set of controls to include in the extended request. It
may be null
or empty if no request controls should be
included.public ReplaceInterServerCertificateExtendedRequest(@NotNull ExtendedRequest request) throws LDAPException
request
- The generic extended request to be decoded as a replace
inter-server certificate extended request. It must not be
null
.LDAPException
- If a problem occurs while attempting to decode the
provided extended request as a replace inter-server
certificate request.@NotNull public ReplaceCertificateKeyStoreContent getKeyStoreContent()
public boolean skipCertificateValidation()
true
if the server should skip validation processing for
the new certificate chain, or false
if not.@NotNull public ReplaceInterServerCertificateExtendedResult process(@NotNull LDAPConnection connection, int depth) throws LDAPException
process
in class ExtendedRequest
connection
- The connection to use to communicate with the directory
server.depth
- The current referral depth for this request. It should
always be one for the initial request, and should only
be incremented when following referrals.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public java.lang.String getExtendedRequestName()
getExtendedRequestName
in class ExtendedRequest
public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface ProtocolOp
toString
in interface ReadOnlyLDAPRequest
toString
in class ExtendedRequest
buffer
- The buffer to which to append a string representation of
this request.