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,
KeyId keyId) |
| Modifier and Type | Method and Description |
|---|---|
Keychain |
getKeychain() |
long |
getSkew() |
void |
setSkew(long skew)
set to a positive number to enforce date header check within server time +/- skew.
|
boolean |
verify(Challenge challenge,
RequestContent requestContent,
Authorization authorization)
Verifies the provided
Authorization header against the original Challenge |
VerifyResult |
verifyWithResult(Challenge challenge,
RequestContent requestContent,
Authorization authorization)
Verifies the provided
Authorization header against the original Challenge |
public static final long DEFAULT_SKEW
public Verifier(Keychain keychain)
public Keychain getKeychain()
public long getSkew()
public void setSkew(long skew)
skew - new server skew in millisecondspublic boolean verify(Challenge challenge, RequestContent requestContent, Authorization authorization)
Authorization header against the original Challengechallenge - the WWW-Authenticate challenge sent to the client in the previous responserequestContent - the RequestContent containing the request header contentauthorization - the Authorization header to verifyVerifyResult.SUCCESS), false otherwisepublic VerifyResult verifyWithResult(Challenge challenge, RequestContent requestContent, Authorization authorization)
Authorization header against the original Challengechallenge - the WWW-Authenticate challenge sent to the client in the previous responserequestContent - the RequestContent containing the request header contentauthorization - the Authorization header to verifyCopyright © 2013-2014. All Rights Reserved.