public class PasswordClass extends StringClass
newProperty
Modifier and Type | Field and Description |
---|---|
protected static String |
CRYPT_IDENTIFIER |
protected static String |
DEFAULT_CRYPT_ALGORITHM |
protected static String |
DEFAULT_HASH_ALGORITHM |
protected static String |
DEFAULT_STORAGE |
protected static String |
FORM_PASSWORD_PLACEHODLER |
protected static String |
HASH_IDENTIFIER |
protected static org.slf4j.Logger |
LOGGER |
protected static String |
SEPARATOR |
cachedCustomDisplayer
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolver
documentReference, localEntityReferenceSerializer, ownerDocument, referenceCache
Constructor and Description |
---|
PasswordClass() |
PasswordClass(PropertyMetaClass wclass) |
Modifier and Type | Method and Description |
---|---|
void |
displayEdit(StringBuffer buffer,
String name,
String prefix,
BaseCollection object,
XWikiContext context) |
void |
displayHidden(StringBuffer buffer,
String name,
String prefix,
BaseCollection object,
XWikiContext context) |
void |
displayView(StringBuffer buffer,
String name,
String prefix,
BaseCollection object,
XWikiContext context) |
BaseProperty |
fromString(String value) |
String |
getAlgorithmFromPassword(String password) |
String |
getCryptAlgorithm() |
String |
getEquivalentPassword(String storedPassword,
String plainPassword)
Transforms a plain text password so that it has the same encryption as a password stored in the database.
|
String |
getHashAlgorithm() |
String |
getPasswordCrypt(String password) |
String |
getPasswordCrypt(String password,
String algorithmName) |
String |
getPasswordHash(String password) |
String |
getPasswordHash(String password,
String algorithmName) |
String |
getProcessedPassword(String password) |
String |
getStorageType() |
getSize, isPicker, newProperty, setPicker, setSize
clone, compareTo, createReference, displayCustom, displayEdit, displayEdit, displayHidden, displayHidden, displayView, displayView, flushCache, fromStringArray, fromValue, fromXML, getCachedDefaultCustomDisplayer, getClassName, getClassType, getCustomDisplay, getDefaultCustomDisplayer, getFieldFullName, getFullQueryPropertyName, getId, getName, getNumber, getObject, getPrettyName, getPrettyName, getTooltip, getTooltip, getTranslatedPrettyName, getValidationMessage, getValidationRegExp, getXClass, getxWikiClass, initLazyCollections, isCustomDisplayed, isDisabled, isUnmodifiable, isValidColumnTypes, mergeProperty, newPropertyfromXML, setClassType, setCustomDisplay, setDisabled, setId, setName, setNumber, setObject, setPrettyName, setTooltip, setUnmodifiable, setValidationMessage, setValidationRegExp, setxWikiClass, toFormString, toString, toXML, toXML, validateProperty
addField, addPropertyForRemoval, apply, equals, get, getCustomMappingMap, getDateValue, getDiff, getDoubleValue, getField, getFieldList, getFieldsToRemove, getFloatValue, getIntValue, getIntValue, getLargeStringValue, getListValue, getLongValue, getProperties, getPropertyList, getPropertyNames, getRelativeXClassReference, getSetValue, getSortedIterator, getStringValue, getXClassReference, merge, merge, mergeField, put, removeField, safeget, safeput, setClassName, setDateValue, setDBStringListValue, setDocumentReference, setDoubleValue, setFields, setFieldsToRemove, setFloatValue, setIntValue, setLargeStringValue, setLongValue, setOwnerDocument, setSetValue, setStringListValue, setStringValue, setXClassReference, toString, toXMLString
getDocumentReference, getLocalKey, getLocalUidStringEntityReferenceSerializer, getOwnerDocument, getReference, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
get, put, safeget, safeput
apply, getDocumentReference, getReference, merge, setDocumentReference, toString
protected static org.slf4j.Logger LOGGER
protected static final String DEFAULT_STORAGE
protected static final String DEFAULT_HASH_ALGORITHM
protected static final String DEFAULT_CRYPT_ALGORITHM
protected static final String HASH_IDENTIFIER
protected static final String CRYPT_IDENTIFIER
protected static final String SEPARATOR
protected static final String FORM_PASSWORD_PLACEHODLER
public PasswordClass(PropertyMetaClass wclass)
public PasswordClass()
public BaseProperty fromString(String value)
fromString
in interface PropertyClassInterface
fromString
in class StringClass
public void displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
displayHidden
in interface PropertyClassInterface
displayHidden
in class PropertyClass
public void displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
displayView
in interface PropertyClassInterface
displayView
in class PropertyClass
public void displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
displayEdit
in interface PropertyClassInterface
displayEdit
in class StringClass
public String getStorageType()
public String getHashAlgorithm()
public String getCryptAlgorithm()
public String getAlgorithmFromPassword(String password)
password
- public String getEquivalentPassword(String storedPassword, String plainPassword)
storedPassword
- The stored password, which gives the storage type and algorithm.plainPassword
- The plain text password to be encrypted.Copyright © 2004–2014 XWiki. All rights reserved.