public class CredentialsUtil extends Object
| Constructor and Description |
|---|
CredentialsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
redact(String s)
Huge thanks to Eric Hammond from Alestic on this one (source: Understanding Access Credentials for
AWS/EC2:
|
public static String redact(String s)
Huge thanks to Eric Hammond from Alestic on this one (source: Understanding Access Credentials for AWS/EC2:
(6) AWS Access Key ID and (7) Secret Access Key. This is the first of two pairs of
credentials which can be used to access and control basic AWS services through the API
including EC2, S3, SimpleDB, CloudFront, SQS, EMR, RDS, etc. Some interfaces use this pair, and
some use the next pair below. Pay close attention to the names requested. The Access Key ID is
20 alpha-numeric characters like 022QF06E7MXBSH9DHM02 and is not secret; it is available to
others in some situations. The Secret Access Key is 40 alpha-numeric-slash-plus characters
like kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct and must be kept very secret.
s - string to replaceCopyright © 2011-2015 ingenieux. All Rights Reserved.