@NotMutable @ThreadSafety(level=NOT_THREADSAFE) public final class ReusableTOTPBindRequest extends UnboundIDTOTPBindRequest
SingleUseTOTPBindRequest variant should be used instead.
 
   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.
 UNBOUNDID_TOTP_MECHANISM_NAMECRED_TYPE_SASLVERSION_ELEMENT| Constructor and Description | 
|---|
| ReusableTOTPBindRequest(java.lang.String authenticationID,
                       java.lang.String authorizationID,
                       byte[] sharedSecret,
                       byte[] staticPassword,
                       Control... controls)Creates a new SASL TOTP bind request with the provided information. | 
| ReusableTOTPBindRequest(java.lang.String authenticationID,
                       java.lang.String authorizationID,
                       byte[] sharedSecret,
                       byte[] staticPassword,
                       int totpIntervalDurationSeconds,
                       int totpNumDigits,
                       Control... controls)Creates a new SASL TOTP bind request with the provided information. | 
| ReusableTOTPBindRequest(java.lang.String authenticationID,
                       java.lang.String authorizationID,
                       byte[] sharedSecret,
                       java.lang.String staticPassword,
                       Control... controls)Creates a new SASL TOTP bind request with the provided information. | 
| ReusableTOTPBindRequest(java.lang.String authenticationID,
                       java.lang.String authorizationID,
                       byte[] sharedSecret,
                       java.lang.String staticPassword,
                       int totpIntervalDurationSeconds,
                       int totpNumDigits,
                       Control... controls)Creates a new SASL TOTP bind request with the provided information. | 
| Modifier and Type | Method and Description | 
|---|---|
| ReusableTOTPBindRequest | duplicate()Creates a new instance of this LDAP request that may be modified without
 impacting this request. | 
| ReusableTOTPBindRequest | duplicate(Control[] controls)Creates a new instance of this LDAP request that may be modified without
 impacting this request. | 
| ReusableTOTPBindRequest | getRebindRequest(java.lang.String host,
                int port)Retrieves a bind request that may be used to re-bind using the same
 credentials authentication type and credentials as previously used to
 perform the initial bind. | 
| protected ASN1OctetString | getSASLCredentials()Retrieves the encoded SASL credentials that may be included in an
 UNBOUNDID-TOTP SASL bind request. | 
| byte[] | getSharedSecret()Retrieves the shared secret key to use when generating the TOTP password. | 
| int | getTOTPIntervalDurationSeconds()Retrieves the duration (in seconds) of the time interval to use when
 generating the TOTP password. | 
| int | getTOTPNumDigits()Retrieves the number of digits to include in the generated TOTP password. | 
| void | toCode(java.util.List<java.lang.String> lineList,
      java.lang.String requestID,
      int indentSpaces,
      boolean includeProcessing)Appends a number of lines comprising the Java source code that can be used
 to recreate this request to the given list. | 
encodeCredentials, getAuthenticationID, getAuthorizationID, getLastMessageID, getSASLMechanismName, getStaticPassword, process, toStringgetBindType, responseReceived, sendBindRequest, sendMessagegetOperationTypefollowReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getReferralConnector, getReferralConnectorInternal, getReferralDepth, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setReferralDepth, setResponseTimeoutMillis, toStringpublic ReusableTOTPBindRequest(@NotNull java.lang.String authenticationID, @Nullable java.lang.String authorizationID, @NotNull byte[] sharedSecret, @Nullable java.lang.String staticPassword, @Nullable Control... controls)
authenticationID - The authentication identity for the bind request.
                           It must not be null, and must be in the
                           form "u:" followed by a username, or "dn:"
                           followed by a DN.authorizationID - The authorization identity for the bind request.
                           It may be null if the authorization
                           identity should be the same as the authentication
                           identity.  If an authorization identity is
                           specified, it must be in the form "u:" followed
                           by a username, or "dn:" followed by a DN.  The
                           value "dn:" may indicate an authorization
                           identity of the anonymous user.sharedSecret - The shared secret key to use when generating the
                           TOTP password.staticPassword - The static password for the target user.  It may
                           be null if only the one-time password is
                           to be used for authentication (which may or may
                           not be allowed by the server).controls - The set of controls to include in the bind
                           request.public ReusableTOTPBindRequest(@NotNull java.lang.String authenticationID, @Nullable java.lang.String authorizationID, @NotNull byte[] sharedSecret, @Nullable byte[] staticPassword, @Nullable Control... controls)
authenticationID - The authentication identity for the bind request.
                           It must not be null, and must be in the
                           form "u:" followed by a username, or "dn:"
                           followed by a DN.authorizationID - The authorization identity for the bind request.
                           It may be null if the authorization
                           identity should be the same as the authentication
                           identity.  If an authorization identity is
                           specified, it must be in the form "u:" followed
                           by a username, or "dn:" followed by a DN.  The
                           value "dn:" may indicate an authorization
                           identity of the anonymous user.sharedSecret - The shared secret key to use when generating the
                           TOTP password.staticPassword - The static password for the target user.  It may
                           be null if only the one-time password is
                           to be used for authentication (which may or may
                           not be allowed by the server).controls - The set of controls to include in the bind
                           request.public ReusableTOTPBindRequest(@NotNull java.lang.String authenticationID, @Nullable java.lang.String authorizationID, @NotNull byte[] sharedSecret, @Nullable java.lang.String staticPassword, int totpIntervalDurationSeconds, int totpNumDigits, @Nullable Control... controls)
authenticationID - The authentication identity for the
                                      bind request.  It must not be
                                      null, and must be in the form
                                      "u:" followed by a username, or "dn:"
                                      followed by a DN.authorizationID - The authorization identity for the
                                      bind request.  It may be null
                                      if the authorization identity should
                                      be the same as the authentication
                                      identity.  If an authorization
                                      identity is specified, it must be in
                                      the form "u:" followed by a username,
                                      or "dn:" followed by a DN.  The value
                                      "dn:" may indicate an authorization
                                      identity of the anonymous user.sharedSecret - The shared secret key to use when
                                      generating the TOTP password.staticPassword - The static password for the target
                                      user.  It may be null if only
                                      the one-time password is to be used
                                      for authentication (which may or may
                                      not be allowed by the server).totpIntervalDurationSeconds - The duration (in seconds) of the time
                                      interval to use for TOTP processing.
                                      It must be greater than zero.totpNumDigits - The number of digits to include in the
                                      generated TOTP password.  It must be
                                      greater than or equal to six and less
                                      than or equal to eight.controls - The set of controls to include in the
                                      bind request.public ReusableTOTPBindRequest(@NotNull java.lang.String authenticationID, @Nullable java.lang.String authorizationID, @NotNull byte[] sharedSecret, @Nullable byte[] staticPassword, int totpIntervalDurationSeconds, int totpNumDigits, @Nullable Control... controls)
authenticationID - The authentication identity for the
                                      bind request.  It must not be
                                      null, and must be in the form
                                      "u:" followed by a username, or "dn:"
                                      followed by a DN.authorizationID - The authorization identity for the
                                      bind request.  It may be null
                                      if the authorization identity should
                                      be the same as the authentication
                                      identity.  If an authorization
                                      identity is specified, it must be in
                                      the form "u:" followed by a username,
                                      or "dn:" followed by a DN.  The value
                                      "dn:" may indicate an authorization
                                      identity of the anonymous user.sharedSecret - The shared secret key to use when
                                      generating the TOTP password.staticPassword - The static password for the target
                                      user.  It may be null if only
                                      the one-time password is to be used
                                      for authentication (which may or may
                                      not be allowed by the server).totpIntervalDurationSeconds - The duration (in seconds) of the time
                                      interval to use for TOTP processing.
                                      It must be greater than zero.totpNumDigits - The number of digits to include in the
                                      generated TOTP password.  It must be
                                      greater than or equal to six and less
                                      than or equal to eight.controls - The set of controls to include in the
                                      bind request.@NotNull public byte[] getSharedSecret()
public int getTOTPIntervalDurationSeconds()
public int getTOTPNumDigits()
@NotNull protected ASN1OctetString getSASLCredentials() throws LDAPException
getSASLCredentials in class UnboundIDTOTPBindRequestLDAPException - If a problem is encountered while attempting to
                         obtain the encoded credentials.@NotNull public ReusableTOTPBindRequest getRebindRequest(@NotNull java.lang.String host, int port)
getRebindRequest in class BindRequesthost - The address of the directory server to which the connection
               is established.port - The port of the directory server to which the connection is
               established.null to indicate that automatic
          re-binding is not supported for this type of bind request.@NotNull public ReusableTOTPBindRequest duplicate()
duplicate in interface ReadOnlyLDAPRequestduplicate in class BindRequest@NotNull public ReusableTOTPBindRequest duplicate(@Nullable Control[] controls)
duplicate in interface ReadOnlyLDAPRequestduplicate in class BindRequestcontrols - The set of controls to include in the duplicate request.public void toCode(@NotNull java.util.List<java.lang.String> lineList, @NotNull java.lang.String requestID, int indentSpaces, boolean includeProcessing)
toCode in interface ReadOnlyLDAPRequesttoCode in class SASLBindRequestlineList - The list to which the source code lines should
                            be added.requestID - The name that should be used as an identifier
                            for the request.  If this is null or
                            empty, then a generic ID will be used.indentSpaces - The number of spaces that should be used to
                            indent the generated code.  It must not be
                            negative.includeProcessing - Indicates whether the generated code should
                            include code required to actually process the
                            request and handle the result (if true),
                            or just to generate the request (if
                            false).