PasswordComplexityCheckResult

public abstract @interface PasswordComplexityCheckResult implements Annotation

Result of PasswordComplexityServiceClient.getPasswordComplexity() to indicate screen lock complexity, or type of error if check fails.

Constant Summary

int ACCESS_DENIED
int DA_NOT_ACTIVE
int FEATURE_OFF
int PASSWORD_COMPLEXITY_HIGH Screen lock satisfies one of the following:
  • PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
  • alphabetic, length at least 6
  • alphanumeric, length at least 6

Note that these complexity constants are ordered so that higher values are more complex.

int PASSWORD_COMPLEXITY_LOW Screen lock is one of pattern, PIN, or password.
int PASSWORD_COMPLEXITY_MEDIUM Screen lock satisfies one of the following:
  • PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
  • alphabetic, length at least 4
  • alphanumeric, length at least 4

Note that these complexity constants are ordered so that higher values are more complex.

int PASSWORD_COMPLEXITY_NONE No screen lock.
int SDK_VER_TOO_HIGH
int SDK_VER_TOO_LOW
int UNKNOWN

Inherited Method Summary

Constants

public static final int ACCESS_DENIED

Constant Value: 6

public static final int DA_NOT_ACTIVE

Constant Value: 5

public static final int FEATURE_OFF

Constant Value: 2

public static final int PASSWORD_COMPLEXITY_HIGH

Screen lock satisfies one of the following:

  • PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
  • alphabetic, length at least 6
  • alphanumeric, length at least 6

Note that these complexity constants are ordered so that higher values are more complex.

Constant Value: 327680

public static final int PASSWORD_COMPLEXITY_LOW

Screen lock is one of pattern, PIN, or password.

Note that these complexity constants are ordered so that higher values are more complex.

Constant Value: 65536

public static final int PASSWORD_COMPLEXITY_MEDIUM

Screen lock satisfies one of the following:

  • PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
  • alphabetic, length at least 4
  • alphanumeric, length at least 4

Note that these complexity constants are ordered so that higher values are more complex.

Constant Value: 196608

public static final int PASSWORD_COMPLEXITY_NONE

No screen lock.

Note that these complexity constants are ordered so that higher values are more complex.

Constant Value: 0

public static final int SDK_VER_TOO_HIGH

Constant Value: 4

public static final int SDK_VER_TOO_LOW

Constant Value: 3

public static final int UNKNOWN

Constant Value: 1