public final class Verifier extends Object
Authorization headers using SSH Public Keys| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_SKEW |
| Constructor and Description |
|---|
Verifier(Keychain keychain) |
Verifier(Keychain keychain,
KeyIdentifier keyIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
Keychain |
getKeychain() |
long |
getSkew() |
void |
setSkew(long skew) |
boolean |
verify(Challenge challenge,
SignatureBuilder signatureBuilder,
Authorization authorization)
Verifies the provided
Authorization header against the original Challenge |
VerifyResult |
verifyWithResult(Challenge challenge,
SignatureBuilder signatureBuilder,
Authorization authorization)
Verifies the provided
Authorization header against the original Challenge |
public static final long DEFAULT_SKEW
public Verifier(Keychain keychain)
public Verifier(Keychain keychain, KeyIdentifier keyIdentifier)
public Keychain getKeychain()
public long getSkew()
public void setSkew(long skew)
skew - new server skew in millisecondspublic boolean verify(Challenge challenge, SignatureBuilder signatureBuilder, Authorization authorization)
Authorization header against the original Challengechallenge - the WWW-Authenticate challenge sent to the client in the previous responsesignatureBuilder - the SignatureBuilder containing the request header contentauthorization - the Authorization header to verifyVerifyResult.SUCCESS), false otherwisepublic VerifyResult verifyWithResult(Challenge challenge, SignatureBuilder signatureBuilder, Authorization authorization)
Authorization header against the original Challengechallenge - the WWW-Authenticate challenge sent to the client in the previous responsesignatureBuilder - the SignatureBuilder containing the request header contentauthorization - the Authorization header to verifyCopyright © 2013. All Rights Reserved.