Utils Class Reference
List of all members.
|
Static Package Functions |
| static XMLReader | createXMLReader () |
| static String | encode (String awsSecretAccessKey, String canonicalString, boolean urlencode) |
| static String | makeCanonicalString (String method, String resource, Map headers, String expires) |
| static String | makeCanonicalString (String method, String resource, Map headers) |
| static String | pathForListOptions (String bucket, String prefix, String marker, Integer maxKeys) |
| static String | urlencode (String unencoded) |
Static Package Attributes |
| static final String | ALTERNATIVE_DATE_HEADER = "x-amz-date" |
| static final String | AMAZON_HEADER_PREFIX = "x-amz-" |
| static final String | DEFAULT_HOST = "s3.amazonaws.com" |
| static final int | INSECURE_PORT = 80 |
| static final String | METADATA_PREFIX = "x-amz-meta-" |
| static final int | SECURE_PORT = 443 |
Static Private Member Functions |
| static String | concatenateList (List values) |
Static Private Attributes |
| static final String | HMAC_SHA1_ALGORITHM = "HmacSHA1" |
Member Function Documentation
| static String concatenateList |
( |
List |
values |
) |
[static, private] |
Concatenates a bunch of header values, seperating them with a comma.
- Parameters:
-
| values | List of header values. |
- Returns:
- String of all headers, with commas.
| static XMLReader createXMLReader |
( |
|
) |
[static, package] |
| static String encode |
( |
String |
awsSecretAccessKey, |
|
|
String |
canonicalString, |
|
|
boolean |
urlencode | |
|
) |
| | [static, package] |
Calculate the HMAC/SHA1 on a string.
- Parameters:
-
| data | Data to sign |
| passcode | Passcode to sign it with |
- Returns:
- Signature
- Exceptions:
-
| NoSuchAlgorithmException | If the algorithm does not exist. Unlikely |
| InvalidKeyException | If the key is invalid. |
Calculate the canonical string. When expires is non-null, it will be used instead of the Date header.
| static String makeCanonicalString |
( |
String |
method, |
|
|
String |
resource, |
|
|
Map |
headers | |
|
) |
| | [static, package] |
| static String urlencode |
( |
String |
unencoded |
) |
[static, package] |
Member Data Documentation
HMAC/SHA1 Algorithm per RFC 2104.
The documentation for this class was generated from the following file:
- /opt/source/Wonder/Frameworks/BusinessLogic/ERAttachment/Sources/com/amazon/s3/Utils.java