package com.dji.sample.manage.model.password;

import lombok.Builder;
import lombok.Getter;

/**
 * Carries the contextual information needed by password rules that perform
 * user-specific checks (e.g. similarity to username / phone number).
 * Pass {@code null} when no user context is available (e.g. during initial setup).
 */
@Getter
@Builder
public class PasswordRuleContext {

    /** The user's login name. May be {@code null}. */
    private final String username;

    /** The user's phone number (may contain non-digit characters). May be {@code null}. */
    private final String phoneNumber;

}
