Class SecurityQuestionsCredentialsPolicyType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialPolicyType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.SecurityQuestionsCredentialsPolicyType
-
- All Implemented Interfaces:
Containerable
,Serializable
,Cloneable
public class SecurityQuestionsCredentialsPolicyType extends CredentialPolicyType implements Serializable, Cloneable, Containerable
Structure that specifies policy for security questions. It actually contains text for the questions (or rather a reference to localization catalog file). But it also contains a policy how the questions can be used, e.g. how many questions to display to a user.Java class for SecurityQuestionsCredentialsPolicyType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SecurityQuestionsCredentialsPolicyType"> <complexContent> <extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}CredentialPolicyType"> <sequence> <element name="questionNumber" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> <element name="question" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}SecurityQuestionDefinitionType" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_QUESTION
static ItemName
F_QUESTION_NUMBER
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialPolicyType
F_HISTORY_LENGTH, F_HISTORY_STORAGE_METHOD, F_LOCKOUT_DURATION, F_LOCKOUT_FAILED_ATTEMPTS_DURATION, F_LOCKOUT_MAX_FAILED_ATTEMPTS, F_MAX_AGE, F_MAX_OCCURS, F_MIN_AGE, F_MIN_OCCURS, F_PROPAGATION_USER_CONTROL, F_RESET_METHOD, F_STORAGE_METHOD, F_VALUE_POLICY_REF, F_WARNING_BEFORE_EXPIRATION_DURATION
-
-
Constructor Summary
Constructors Constructor Description SecurityQuestionsCredentialsPolicyType()
SecurityQuestionsCredentialsPolicyType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialPolicyType
getHistoryLength, getHistoryStorageMethod, getLockoutDuration, getLockoutFailedAttemptsDuration, getLockoutMaxFailedAttempts, getMaxAge, getMaxOccurs, getMinAge, getMinOccurs, getPropagationUserControl, getResetMethod, getStorageMethod, getValuePolicyRef, getWarningBeforeExpirationDuration, setHistoryLength, setHistoryStorageMethod, setLockoutDuration, setLockoutFailedAttemptsDuration, setLockoutMaxFailedAttempts, setMaxAge, setMaxOccurs, setMinAge, setMinOccurs, setPropagationUserControl, setResetMethod, setStorageMethod, setValuePolicyRef, setWarningBeforeExpirationDuration
-
-
-
-
Constructor Detail
-
SecurityQuestionsCredentialsPolicyType
public SecurityQuestionsCredentialsPolicyType()
-
SecurityQuestionsCredentialsPolicyType
public SecurityQuestionsCredentialsPolicyType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
- Overrides:
asPrismContainerValue
in classCredentialPolicyType
-
setupContainerValue
public void setupContainerValue(PrismContainerValue containerValue)
Description copied from interface:Containerable
Setup value to the containerable representation. This is used to after (empty) containerable is created to initialize it with a correct prism container value. Note: This method DOES NOT change the container value parent.- Specified by:
setupContainerValue
in interfaceContainerable
- Overrides:
setupContainerValue
in classCredentialPolicyType
-
toString
public String toString()
- Overrides:
toString
in classCredentialPolicyType
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classCredentialPolicyType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCredentialPolicyType
-
end
public <X> X end()
- Overrides:
end
in classCredentialPolicyType
-
getQuestionNumber
public Integer getQuestionNumber()
-
setQuestionNumber
public void setQuestionNumber(Integer value)
-
getQuestion
public List<SecurityQuestionDefinitionType> getQuestion()
-
createQuestionList
public List<SecurityQuestionDefinitionType> createQuestionList()
-
questionNumber
public SecurityQuestionsCredentialsPolicyType questionNumber(Integer value)
-
question
public SecurityQuestionsCredentialsPolicyType question(SecurityQuestionDefinitionType value)
-
beginQuestion
public SecurityQuestionDefinitionType beginQuestion()
-
storageMethod
public SecurityQuestionsCredentialsPolicyType storageMethod(CredentialsStorageMethodType value)
- Overrides:
storageMethod
in classCredentialPolicyType
-
beginStorageMethod
public CredentialsStorageMethodType beginStorageMethod()
- Overrides:
beginStorageMethod
in classCredentialPolicyType
-
resetMethod
public SecurityQuestionsCredentialsPolicyType resetMethod(CredentialsResetMethodType value)
- Overrides:
resetMethod
in classCredentialPolicyType
-
beginResetMethod
public CredentialsResetMethodType beginResetMethod()
- Overrides:
beginResetMethod
in classCredentialPolicyType
-
propagationUserControl
public SecurityQuestionsCredentialsPolicyType propagationUserControl(CredentialsPropagationUserControlType value)
- Overrides:
propagationUserControl
in classCredentialPolicyType
-
minOccurs
public SecurityQuestionsCredentialsPolicyType minOccurs(String value)
- Overrides:
minOccurs
in classCredentialPolicyType
-
maxOccurs
public SecurityQuestionsCredentialsPolicyType maxOccurs(String value)
- Overrides:
maxOccurs
in classCredentialPolicyType
-
maxAge
public SecurityQuestionsCredentialsPolicyType maxAge(Duration value)
- Overrides:
maxAge
in classCredentialPolicyType
-
minAge
public SecurityQuestionsCredentialsPolicyType minAge(Duration value)
- Overrides:
minAge
in classCredentialPolicyType
-
warningBeforeExpirationDuration
public SecurityQuestionsCredentialsPolicyType warningBeforeExpirationDuration(Duration value)
- Overrides:
warningBeforeExpirationDuration
in classCredentialPolicyType
-
lockoutMaxFailedAttempts
public SecurityQuestionsCredentialsPolicyType lockoutMaxFailedAttempts(Integer value)
- Overrides:
lockoutMaxFailedAttempts
in classCredentialPolicyType
-
lockoutFailedAttemptsDuration
public SecurityQuestionsCredentialsPolicyType lockoutFailedAttemptsDuration(Duration value)
- Overrides:
lockoutFailedAttemptsDuration
in classCredentialPolicyType
-
lockoutDuration
public SecurityQuestionsCredentialsPolicyType lockoutDuration(Duration value)
- Overrides:
lockoutDuration
in classCredentialPolicyType
-
valuePolicyRef
public SecurityQuestionsCredentialsPolicyType valuePolicyRef(ObjectReferenceType value)
- Overrides:
valuePolicyRef
in classCredentialPolicyType
-
valuePolicyRef
public SecurityQuestionsCredentialsPolicyType valuePolicyRef(String oid, QName type)
- Overrides:
valuePolicyRef
in classCredentialPolicyType
-
valuePolicyRef
public SecurityQuestionsCredentialsPolicyType valuePolicyRef(String oid, QName type, QName relation)
- Overrides:
valuePolicyRef
in classCredentialPolicyType
-
beginValuePolicyRef
public ObjectReferenceType beginValuePolicyRef()
- Overrides:
beginValuePolicyRef
in classCredentialPolicyType
-
historyLength
public SecurityQuestionsCredentialsPolicyType historyLength(Integer value)
- Overrides:
historyLength
in classCredentialPolicyType
-
historyStorageMethod
public SecurityQuestionsCredentialsPolicyType historyStorageMethod(CredentialsStorageMethodType value)
- Overrides:
historyStorageMethod
in classCredentialPolicyType
-
beginHistoryStorageMethod
public CredentialsStorageMethodType beginHistoryStorageMethod()
- Overrides:
beginHistoryStorageMethod
in classCredentialPolicyType
-
clone
public SecurityQuestionsCredentialsPolicyType clone()
- Overrides:
clone
in classCredentialPolicyType
-
-