SecurityHandler#setParameter(String, String)
using the name "maxNonceAge". The nonce max count can be set with SecurityHandler#setParameter(String, String)
using the name "maxNonceCount". When the age or count is exceeded, the nonce is considered stale.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private long | |
| private final ConcurrentMap | |
| private final Queue | |
| private final SecureRandom | |
| private static final Logger | |
| private static final QuotedStringTokenizer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | checkNonce(DigestAuthenticator.
the digest data to check digest,the request object request)Returns: -1 for a bad nonce, 0 for a stale none, 1 for a good nonce |
| public String | |
| public long | |
| public int | |
| public UserIdentity | login(String
the username of the client to be authenticated username, Object the user's credential credentials, Request the inbound request that needs authentication request, Response response)Overrides org. If the UserIdentity returned from
|
| public String | |
| public void | setConfiguration(Authenticator.
the configuration configurationOverrides org. Implements org. Configure the Authenticator |
| public void | |
| public void | |
| public AuthenticationState | validateRequest(Request
The request req, Response The response res, Callback the callback to use for writing a response callback)Implements org. Validate a request |
| _maxNC | back to summary |
|---|---|
| private int _maxNC | |
| _maxNonceAgeMs | back to summary |
|---|---|
| private long _maxNonceAgeMs | |
| _nonceMap | back to summary |
|---|---|
| private final ConcurrentMap<String, DigestAuthenticator. | |
| _nonceQueue | back to summary |
|---|---|
| private final Queue<DigestAuthenticator. | |
| _random | back to summary |
|---|---|
| private final SecureRandom _random | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| TOKENIZER | back to summary |
|---|---|
| private static final QuotedStringTokenizer TOKENIZER | |
| DigestAuthenticator | back to summary |
|---|---|
| public DigestAuthenticator() | |
| checkNonce | back to summary |
|---|---|
private int checkNonce(DigestAuthenticator.
| |
| getAuthenticationType | back to summary |
|---|---|
| public String getAuthenticationType() Implements org.
| |
| getMaxNonceAge | back to summary |
|---|---|
| public long getMaxNonceAge() | |
| getMaxNonceCount | back to summary |
|---|---|
| public int getMaxNonceCount() | |
| login | back to summary |
|---|---|
| public UserIdentity login(String username, Object credentials, Request request, Response response) Overrides org. Doc from org. If the UserIdentity returned from
| |
| newNonce | back to summary |
|---|---|
| public String newNonce(Request request) | |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(Authenticator. Overrides org. Implements org. Doc from org. Configure the Authenticator
| |
| setMaxNonceAge | back to summary |
|---|---|
| public void setMaxNonceAge(long maxNonceAgeInMillis) | |
| setMaxNonceCount | back to summary |
|---|---|
| public void setMaxNonceCount(int maxNC) | |
| validateRequest | back to summary |
|---|---|
| public AuthenticationState validateRequest(Request req, Response res, Callback callback) throws ServerAuthException Implements org. Doc from org. Validate a request
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv final String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| private static final long | |
| pack-priv String | |
| pack-priv String |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | check(Object
The credential to check against. This may either be another Credential object, a Password object or a String which is interpreted by this
credential. credentials)Implements abstract org. Check a credential |
| public String |
| cnonce | back to summary |
|---|---|
| pack-priv String cnonce | |
| method | back to summary |
|---|---|
| pack-priv final String method | |
| nc | back to summary |
|---|---|
| pack-priv String nc | |
| nonce | back to summary |
|---|---|
| pack-priv String nonce | |
| qop | back to summary |
|---|---|
| pack-priv String qop | |
| realm | back to summary |
|---|---|
| pack-priv String realm | |
| response | back to summary |
|---|---|
| pack-priv String response | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| uri | back to summary |
|---|---|
| pack-priv String uri | |
| username | back to summary |
|---|---|
| pack-priv String username | |
| Digest | back to summary |
|---|---|
| pack-priv Digest(String m) | |
| check | back to summary |
|---|---|
| public boolean check(Object credentials) Implements abstract org. Doc from org. Check a credential
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final AutoLock | |
| pack-priv final String | |
| pack-priv final BitSet | |
| pack-priv final long |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _nonce | back to summary |
|---|---|
| pack-priv final String _nonce | |
| _seen | back to summary |
|---|---|
| pack-priv final BitSet _seen | |
| _ts | back to summary |
|---|---|
| pack-priv final long _ts | |
| Nonce | back to summary |
|---|---|
| public Nonce(String nonce, long ts, int size) | |
| seen | back to summary |
|---|---|
| public boolean seen(int count) | |