public class DigestLoginPlugin extends BaseLoginModule
Modifier and Type | Field and Description |
---|---|
protected static String |
CNONCE |
protected static String |
HTTP_METHOD |
protected static String |
NC |
protected static String |
NONCE |
protected static String |
PASSWORD_FIELD |
protected static String |
QOP |
protected static String |
REALM |
protected static String |
URI |
loginPage, parameters, pluginName
Constructor and Description |
---|
DigestLoginPlugin() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeDigestAuthPassword(String username,
String realm,
String password) |
static String |
generateDigest(String ha1,
String httpMethod,
String uri,
String qop,
String nonce,
String nc,
String cnonce) |
protected String |
getStoredHA1(String username) |
Boolean |
initLoginModule() |
String |
validatedUserIdentity(UserIdentificationInfo userIdent) |
getLoginPage, getName, getParameter, getParameters, setLoginPage, setName, setParameters
protected static final String REALM
protected static final String HTTP_METHOD
protected static final String URI
protected static final String QOP
protected static final String NONCE
protected static final String NC
protected static final String CNONCE
protected static final String PASSWORD_FIELD
public DigestLoginPlugin()
public Boolean initLoginModule()
public String validatedUserIdentity(UserIdentificationInfo userIdent)
public static String generateDigest(String ha1, String httpMethod, String uri, String qop, String nonce, String nc, String cnonce) throws IllegalArgumentException
IllegalArgumentException
public static String encodeDigestAuthPassword(String username, String realm, String password)
protected String getStoredHA1(String username) throws DirectoryException
DirectoryException
Copyright © 2017 Nuxeo. All rights reserved.