Cloud Keys 2020 Android Edition

Questions / Feedback?

GenRandomPassword Method

Returns a server-generated random password that complies with the given criteria.

Syntax

public String genRandomPassword(int length, boolean lowercase, boolean uppercase, boolean numbers, boolean punctuation, boolean spaces, String excludeChars, boolean requireEach);

Remarks

This method requests and returns a random password generated by the server based on a number of criteria.

The Length parameter specifies how long the password must be; it must be a value in the range 1 to 4096 (inclusive).

The Lowercase, Uppercase, Numbers, Punctuation, and Spaces parameters specify whether the server is allowed to include characters of each type. The Lowercase and Uppercase types cover ASCII characters only. For Punctuation, the applicable characters are: ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

The ExcludeChars parameters specifies a list of characters that must not be included in the password. For example, passing &" - would exclude ampersands, double quotes, spaces, and hyphens.

The RequireEach parameter specifies whether the server must include at least one of each allowed character type in the password.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Keys 2020 Android Edition - Version 20.0 [Build 7718]