Skip to content

ws1-client-sdk/com.airwatch.sdk.profile/PasscodePolicy

PasscodePolicy

open class PasscodePolicy

Provides information about Passcode policy set in console. This includes details around passcode age complexity and other related requirements

Information can be fetched from anchor application using getPasscodePolicy .

Example Usage

//Initializes Workspace ONE SDK and connects with anchor application if it is available.
SDKManager sdkManager = SDKManager.init(context);
//Checks enrollment status
if(sdkManager.isEnrolled()){
  //Fetch policy from enrolled anchor application.
  PasscodePolicy profile = sdkManager.getPasscodePolicy();
}

Functions

Name Summary
getMaxPasscodeAge open fun getMaxPasscodeAge(): Int
Provides the maximum passcode age configured in the WS1 UEM Console, after which the user is prompted to change their passcode.
getMinComplexChars open fun getMinComplexChars(): Int
Provides the minimum number of complex (non-alphanumeric) characters required in the passcode, as configured in the WS1 Console.
getMinPasscodeLength open fun getMinPasscodeLength(): Int
Provides the minimum passcode length configured in the WS1 Console.
getPasscodeHistory open fun getPasscodeHistory(): Int
Provides the passcode history depth configured in the WS1 UEM Console.
getPassscodeComplexity open fun getPassscodeComplexity(): Int
Returns flag value indicating if Passcode Complexity is specified in the Console
isPasscodeRequired open fun isPasscodeRequired(): Boolean
Returns flag value indicating if Passcode requirement is specified in the WS1 Console.