public final class Authorization extends Object implements Serializable
Challenge
Constructor and Description |
---|
Authorization(String keyId,
String signature,
List<String> headers,
Algorithm algorithm)
Construct an
Authorization instance |
Modifier and Type | Method and Description |
---|---|
Algorithm |
getAlgorithm() |
List<String> |
getHeaders() |
String |
getHeaderValue() |
String |
getKeyId() |
String |
getSignature() |
byte[] |
getSignatureBytes() |
static Authorization |
parse(String header)
Parse an Authorization header value to construct an
Authorization instance |
String |
toString() |
public Authorization(String keyId, String signature, List<String> headers, Algorithm algorithm)
Authorization
instancekeyId
- the key identifiersignature
- the Base64-encoded Signatureheaders
- the list of signed headersalgorithm
- the signing algorithm usedpublic String getKeyId()
public String getSignature()
public byte[] getSignatureBytes()
Verifier
public Algorithm getAlgorithm()
public String getHeaderValue()
Authorization
header valuepublic static Authorization parse(String header)
Authorization
instanceheader
- the Authorization header valueAuthorization
instanceCopyright © 2013-2017. All Rights Reserved.