Class SupportedOTPDeliveryMechanismInfo
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.extensions.SupportedOTPDeliveryMechanismInfo
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class SupportedOTPDeliveryMechanismInfo
extends Object
implements Serializable
This class provides a data structure with information about a one-time
password delivery mechanism that is supported by the Directory Server and may
or may not be supported for a particular user.
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 Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSupportedOTPDeliveryMechanismInfo(String deliveryMechanism, Boolean isSupported, String recipientID) Creates a new supported OTP delivery mechanism info object with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the provided object is considered equal to this supported OTP delivery mechanism info object.Retrieves the name of the one-time password delivery mechanism to which this object corresponds.Retrieves the recipient ID, if any, that may be used for the target user in conjunction with the associated delivery mechanism.inthashCode()Retrieves a hash code for this supported OTP delivery mechanism info object.Retrieves information about whether the one-time password delivery mechanism is supported for the target user.toString()Retrieves a string representation of this supported OTP delivery mechanism info object.voidtoString(StringBuilder buffer) Appends a string representation of this supported OTP delivery mechanism info object to the provided buffer.
-
Constructor Details
-
SupportedOTPDeliveryMechanismInfo
public SupportedOTPDeliveryMechanismInfo(@NotNull String deliveryMechanism, @Nullable Boolean isSupported, @Nullable String recipientID) Creates a new supported OTP delivery mechanism info object with the provided information.- Parameters:
deliveryMechanism- The name of the one-time password delivery mechanism to which this object corresponds.isSupported- Indicates whether the specified delivery mechanism is expected to be supported for the target user. This may betrue(to indicate that the delivery mechanism is expected to be supported for the target user,falseif the delivery mechanism is not supported for the target user, ornullif it cannot be determined whether the delivery mechanism is supported for the target user.recipientID- An optional recipient ID that can be used in conjunction with the delivery mechanism if it is supported for the user (e.g., it may be an email address for an email-based delivery mechanism or a mobile phone number for an SMS-based delivery mechanism). This may benullif the delivery mechanism is not supported or if no recipient ID is applicable.
-
-
Method Details
-
getDeliveryMechanism
Retrieves the name of the one-time password delivery mechanism to which this object corresponds.- Returns:
- The name of the one-time password delivery mechanism to which this object corresponds.
-
isSupported
Retrieves information about whether the one-time password delivery mechanism is supported for the target user.- Returns:
trueif the delivery mechanism is expected to be supported for the user,falseif the delivery mechanism is not supported for the user, ornullif it cannot be determined whether the delivery mechanism is supported for the target user.
-
getRecipientID
Retrieves the recipient ID, if any, that may be used for the target user in conjunction with the associated delivery mechanism. If a recipient ID is available, then its format may vary based on the type of delivery mechanism.- Returns:
- The recipient ID that may be used for the target user in
conjunction with the associated delivery mechanism, or
nullif there is no recipient ID associated with the delivery mechanism, or if the delivery mechanism is not expected to be supported for the target user.
-
hashCode
Retrieves a hash code for this supported OTP delivery mechanism info object. -
equals
Indicates whether the provided object is considered equal to this supported OTP delivery mechanism info object. -
toString
Retrieves a string representation of this supported OTP delivery mechanism info object. -
toString
Appends a string representation of this supported OTP delivery mechanism info object to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-