public static String generateAccessKeyId ( ) { // Based on http://stackoverflow.com/a/41156/535203 final char [ ] accessKeyId = new char [ ACCESS_KEY_ID_LENGTH ] ; for ( int i = 0 ; i < accessKeyId . length ; i ++ ) { accessKeyId [ i ] = SYMBOLS [ SECURE_RANDOM . nextInt ( SYMBOLS . length ) ] ; } return new String ( accessKeyId ) ; }
Generates a 25 length String access key id