|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.html.HtmlInputText
org.apache.myfaces.custom.passwordStrength.AbstractPasswordStrengthComponent
org.apache.myfaces.custom.passwordStrength.PasswordStrengthComponent
public class PasswordStrengthComponent
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
DEFAULT_RENDERER_TYPE
|
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
---|---|
PasswordStrengthComponent()
|
Method Summary | |
---|---|
java.lang.String |
getAlign()
HTML: Specifies the horizontal alignment of this element. |
java.lang.String |
getCustomSecurityExpression()
This string determines the expression of the custom security rule of the password |
java.lang.String |
getFamily()
|
java.lang.String |
getPenaltyRatio()
This attribute determines the penalty ratio that will decrease the password Strength if the custom security expression is not met. |
java.lang.String |
getPreferredPasswordLength()
The prefered length of the password |
java.lang.String |
getPrefixText()
The prefix of the component message |
java.lang.String |
getShowDetails()
This flag {true | false} determines whether to show the details (left characters). |
java.lang.String |
getStrengthIndicatorType()
This flag determines the indicator type. |
java.lang.String |
getTextStrengthDescriptions()
The text strength descriptions |
java.lang.String |
getUseCustomSecurity()
This flag determines whether to user custom security rules instead of just depending on the password length. |
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setAlign(java.lang.String align)
|
void |
setCustomSecurityExpression(java.lang.String customSecurityExpression)
|
void |
setPenaltyRatio(java.lang.String penaltyRatio)
|
void |
setPreferredPasswordLength(java.lang.String preferredPasswordLength)
|
void |
setPrefixText(java.lang.String prefixText)
|
void |
setShowDetails(java.lang.String showDetails)
|
void |
setStrengthIndicatorType(java.lang.String strengthIndicatorType)
|
void |
setTextStrengthDescriptions(java.lang.String textStrengthDescriptions)
|
void |
setUseCustomSecurity(java.lang.String useCustomSecurity)
|
Methods inherited from class javax.faces.component.html.HtmlInputText |
---|
getAccesskey, getAlt, getDir, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setStyle, setStyleClass, setTabindex, setTitle |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue, setConverter |
Field Detail |
---|
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String DEFAULT_RENDERER_TYPE
Constructor Detail |
---|
public PasswordStrengthComponent()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIInput
public java.lang.String getShowDetails()
AbstractPasswordStrengthComponent
getShowDetails
in class AbstractPasswordStrengthComponent
public void setShowDetails(java.lang.String showDetails)
public java.lang.String getStrengthIndicatorType()
AbstractPasswordStrengthComponent
getStrengthIndicatorType
in class AbstractPasswordStrengthComponent
public void setStrengthIndicatorType(java.lang.String strengthIndicatorType)
public java.lang.String getPreferredPasswordLength()
AbstractPasswordStrengthComponent
getPreferredPasswordLength
in class AbstractPasswordStrengthComponent
public void setPreferredPasswordLength(java.lang.String preferredPasswordLength)
public java.lang.String getPrefixText()
AbstractPasswordStrengthComponent
getPrefixText
in class AbstractPasswordStrengthComponent
public void setPrefixText(java.lang.String prefixText)
public java.lang.String getTextStrengthDescriptions()
AbstractPasswordStrengthComponent
getTextStrengthDescriptions
in class AbstractPasswordStrengthComponent
public void setTextStrengthDescriptions(java.lang.String textStrengthDescriptions)
public java.lang.String getCustomSecurityExpression()
AbstractPasswordStrengthComponent
Note that the expression has the following format :
*******************************************************
S (Number) N (Number) A (Number)
*******************************************************
For example) A4N2S3A2 Means that the password will be as following :
*******************************************************
Note also that the useCustomSecurity should be set to true.
getCustomSecurityExpression
in class AbstractPasswordStrengthComponent
public void setCustomSecurityExpression(java.lang.String customSecurityExpression)
public java.lang.String getUseCustomSecurity()
AbstractPasswordStrengthComponent
getUseCustomSecurity
in class AbstractPasswordStrengthComponent
public void setUseCustomSecurity(java.lang.String useCustomSecurity)
public java.lang.String getPenaltyRatio()
AbstractPasswordStrengthComponent
getPenaltyRatio
in class AbstractPasswordStrengthComponent
public void setPenaltyRatio(java.lang.String penaltyRatio)
public java.lang.String getAlign()
AbstractPasswordStrengthComponent
getAlign
in interface org.apache.myfaces.component.AlignProperty
getAlign
in class AbstractPasswordStrengthComponent
public void setAlign(java.lang.String align)
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.html.HtmlInputText
public void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.html.HtmlInputText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |