Modifier and Type | Field and Description |
---|---|
static int |
HASHED |
static int |
HASHED_SALTED |
int |
origin |
static int |
ORIGIN_ENCRYPTED |
static int |
ORIGIN_HASHED |
static int |
ORIGIN_HASHED_SALTED |
static int |
ORIGIN_UNKNOW |
String |
password |
String |
salt |
int |
type |
Modifier and Type | Method and Description |
---|---|
static Password |
getInstance(Element el,
String salt,
boolean isDefault) |
static Password |
getInstanceFromRawPassword(String rawPassword,
String salt) |
static Password |
hashAndStore(Element el,
String password,
boolean isDefault) |
static Password |
hashPassword(ConfigWeb cw,
boolean server,
String rawPassword) |
Password |
isEqual(Config config,
String other,
boolean hashIfNecessary) |
static void |
remove(Element root,
boolean isDefault) |
static void |
store(Element el,
Password pw,
boolean isDefault) |
static void |
updatePassword(ConfigImpl config,
Password passwordOld,
Password passwordNew) |
static void |
updatePassword(ConfigImpl config,
String strPasswordOld,
String strPasswordNew) |
static Password |
updatePasswordIfNecessary(ConfigImpl config,
Password passwordOld,
String strPasswordNew) |
public static final int HASHED
public static final int HASHED_SALTED
public static final int ORIGIN_ENCRYPTED
public static final int ORIGIN_HASHED
public static final int ORIGIN_HASHED_SALTED
public static final int ORIGIN_UNKNOW
public final int type
public final int origin
public static Password getInstance(Element el, String salt, boolean isDefault)
public static Password getInstanceFromRawPassword(String rawPassword, String salt)
public static Password hashAndStore(Element el, String password, boolean isDefault)
public static Password updatePasswordIfNecessary(ConfigImpl config, Password passwordOld, String strPasswordNew)
public static void updatePassword(ConfigImpl config, String strPasswordOld, String strPasswordNew) throws SAXException, IOException, PageException
config
- Config of the context (ConfigServer to set a server level password)strPasswordOld
- the old password to replace or null if there is no password set yetstrPasswordNew
- the new passwordIOException
SAXException
PageException
public static void updatePassword(ConfigImpl config, Password passwordOld, Password passwordNew) throws SAXException, IOException, PageException
SAXException
IOException
PageException
public static Password hashPassword(ConfigWeb cw, boolean server, String rawPassword)
Copyright © 2015 Lucee