public interface Verifier
Modifier and Type | Method and Description |
---|---|
long |
getSkew() |
Key |
selectKey(Authorization authorization)
|
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 |
long getSkew()
Key selectKey(Authorization authorization)
Key
from the Keychain
matching the keyId specified in the
Authorization
. This method is called by
verifyWithResult(Challenge, RequestContent, Authorization)
, but can be called by client code to
retrieve the identified Key
directlyauthorization
- the Authorization
headerKey
or nullboolean verify(Challenge challenge, RequestContent requestContent, Authorization authorization)
Authorization
header against the original Challenge
challenge
- 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 otherwiseVerifyResult verifyWithResult(Challenge challenge, RequestContent requestContent, Authorization authorization)
Authorization
header against the original Challenge
challenge
- the WWW-Authenticate challenge sent to the client in the previous responserequestContent
- the RequestContent
containing the request header contentauthorization
- the Authorization
header to verifyVerifyResult
Copyright © 2013-2017. All Rights Reserved.