public static String generateSecretAccessKey ( ) { final byte [ ] secretAccessKeyBytes = new byte [ 30 ] ; SECURE_RANDOM . nextBytes ( secretAccessKeyBytes ) ; return StringUtils . chomp ( Base64 . encodeBase64String ( secretAccessKeyBytes ) ) ; }
Generates a 40 length String secret access key