public int getDigits ( ) throws GuacamoleException { // Validate legal number of digits int digits = environment . getProperty ( TOTP_DIGITS , 6 ) ; if ( digits < 6 || digits > 8 ) throw new GuacamoleServerException ( "TOTP codes may have no fewer " + "than 6 digits and no more than 8 digits." ) ; return digits ; }
Returns the number of digits which should be included in each generated TOTP code . If not specified 6 will be used by default .