public class CredentialsUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE |
static Pattern |
PATTERN_ALNUM_40 |
static Pattern |
PATTERN_HEX_40 |
Constructor and Description |
---|
CredentialsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static String |
redact(String s)
Huge thanks to Eric Hammond from Alestic on this one (source: Understanding Access Credentials for
AWS/EC2:
|
public static final Pattern PATTERN_ALNUM_40
public static final Pattern PATTERN_HEX_40
public static final String MESSAGE
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–2019 ingenieux. All rights reserved.