org.mortbay.http
Class DigestAuthenticator
java.lang.Object
org.mortbay.http.DigestAuthenticator
- Authenticator, Serializable
public class DigestAuthenticator
extends java.lang.Object
DIGEST authentication.
$Id: DigestAuthenticator.java,v 1.16 2005/08/13 00:01:24 gregwilkins Exp $
maxNonceAge
protected long maxNonceAge
nonceSecret
protected long nonceSecret
useStale
protected boolean useStale
authenticate
public Principal authenticate(UserRealm realm,
String pathInContext,
HttpRequest request,
HttpResponse response)
throws IOException
- authenticate in interface Authenticator
- UserPrinciple if authenticated or null if not. If
Authentication fails, then the authenticator may have committed
the response as an auth challenge or redirect.
checkNonce
public int checkNonce(String nonce,
HttpRequest request)
- -1 for a bad nonce, 0 for a stale none, 1 for a good nonce
getMaxNonceAge
public long getMaxNonceAge()
getNonceSecret
public long getNonceSecret()
getUseStale
public boolean getUseStale()
setMaxNonceAge
public void setMaxNonceAge(long maxNonceAge)
maxNonceAge
- The maxNonceAge to set.
setNonceSecret
public void setNonceSecret(long nonceSecret)
nonceSecret
- The nonceSecret to set.
setUseStale
public void setUseStale(boolean us)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.