public class Escher extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_EXPIRES |
static String |
UNSIGNED_PAYLOAD |
| Constructor and Description |
|---|
Escher(String credentialScope) |
Escher(String credentialScope,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(EscherRequest request,
Map<String,String> keyDb,
InetSocketAddress address) |
String |
presignUrl(String url,
String accessKeyId,
String secret) |
String |
presignUrl(String url,
String accessKeyId,
String secret,
int expires) |
Escher |
setAlgoPrefix(String algoPrefix) |
Escher |
setAuthHeaderName(String authHeaderName) |
Escher |
setClockSkew(int clockSkew) |
Escher |
setDateHeaderName(String dateHeaderName) |
Escher |
setHashAlgo(String hashAlgo) |
Escher |
setLogger(Consumer<String> logger) |
Escher |
setVendorKey(String vendorKey) |
EscherRequest |
signRequest(EscherRequest request,
String accessKeyId,
String secret,
List<String> signedHeaders) |
public static final String UNSIGNED_PAYLOAD
public static final int DEFAULT_EXPIRES
public Escher(String credentialScope)
public EscherRequest signRequest(EscherRequest request, String accessKeyId, String secret, List<String> signedHeaders) throws EscherException
EscherExceptionpublic String presignUrl(String url, String accessKeyId, String secret) throws EscherException
EscherExceptionpublic String presignUrl(String url, String accessKeyId, String secret, int expires) throws EscherException
EscherExceptionpublic String authenticate(EscherRequest request, Map<String,String> keyDb, InetSocketAddress address) throws EscherException
EscherExceptionpublic Escher setClockSkew(int clockSkew)
Copyright © 2025. All rights reserved.