C# 클래스 Octopus.Client.Validation.PasswordComplexityAttribute

A custom validation rule that ensures passwords meet complexity requirements.
상속: System.ComponentModel.DataAnnotations.ValidationAttribute
파일 보기 프로젝트 열기: OctopusDeploy/Octo.exe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultMessage string

공개 메소드들

메소드 설명
IsPasswordStrongEnough ( string password ) : bool
IsValid ( object value ) : bool
PasswordComplexityAttribute ( ) : System

Initializes a new instance of the PasswordComplexityAttribute class.

비공개 메소드들

메소드 설명
CalculateStrength ( string password ) : int

메소드 상세

IsPasswordStrongEnough() 공개 정적인 메소드

public static IsPasswordStrongEnough ( string password ) : bool
password string
리턴 bool

IsValid() 공개 메소드

public IsValid ( object value ) : bool
value object
리턴 bool

PasswordComplexityAttribute() 공개 메소드

Initializes a new instance of the PasswordComplexityAttribute class.
public PasswordComplexityAttribute ( ) : System
리턴 System

프로퍼티 상세

DefaultMessage 공개적으로 정적으로 프로퍼티

public static string DefaultMessage
리턴 string