DBTEAMPOLICIESPasswordStrengthPolicy
Objective-C
@interface DBTEAMPOLICIESPasswordStrengthPolicy
: NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMPOLICIESPasswordStrengthPolicy : NSObject, DBSerializable, NSCopying
The PasswordStrengthPolicy
union.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMPOLICIESPasswordStrengthPolicyTag tag;
Swift
var tag: DBTEAMPOLICIESPasswordStrengthPolicyTag { get }
-
Initializes union class with tag state of “minimal_requirements”.
Description of the “minimal_requirements” tag state: User passwords will adhere to the minimal password strength policy.
Declaration
Objective-C
- (nonnull instancetype)initWithMinimalRequirements;
Swift
init(minimalRequirements: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “moderate_password”.
Description of the “moderate_password” tag state: User passwords will adhere to the moderate password strength policy.
Declaration
Objective-C
- (nonnull instancetype)initWithModeratePassword;
Swift
init(moderatePassword: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “strong_password”.
Description of the “strong_password” tag state: User passwords will adhere to the very strong password strength policy.
Declaration
Objective-C
- (nonnull instancetype)initWithStrongPassword;
Swift
init(strongPassword: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;
Swift
init(other: ())
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “minimal_requirements”.
Declaration
Objective-C
- (BOOL)isMinimalRequirements;
Swift
func isMinimalRequirements() -> Bool
Return Value
Whether the union’s current tag state has value “minimal_requirements”.
-
Retrieves whether the union’s current tag state has value “moderate_password”.
Declaration
Objective-C
- (BOOL)isModeratePassword;
Swift
func isModeratePassword() -> Bool
Return Value
Whether the union’s current tag state has value “moderate_password”.
-
Retrieves whether the union’s current tag state has value “strong_password”.
Declaration
Objective-C
- (BOOL)isStrongPassword;
Swift
func isStrongPassword() -> Bool
Return Value
Whether the union’s current tag state has value “strong_password”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;
Swift
func isOther() -> Bool
Return Value
Whether the union’s current tag state has value “other”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;
Swift
func tagName() -> String
Return Value
A human-readable string representing the union’s current tag state.