Class CredentialsType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
public class CredentialsType extends Object implements Serializable, Cloneable, Containerable
This is a container type for various credentials types: passwords, public keys, one-time password scheme identifiers, etc. However, we expect that password will be the most widely used credential type. The reason to "formalize" this structure is the ability to synchronize credentials. If the password would be just an ordinary attribute, we cannot automatically synchronize user and account passwords. Similarly as other credential types. Note: marking password with a special attribute type will not be enough. There may be numerous passwords with various meanings, we need to distinguish the "primary" one to synchronize. We also need to store user password somewhere.Java class for CredentialsType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CredentialsType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="password" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}PasswordType" minOccurs="0"/> <element name="nonce" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}NonceType" minOccurs="0"/> <element name="securityQuestions" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}SecurityQuestionsCredentialsType" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}long" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_NONCE
static ItemName
F_PASSWORD
static ItemName
F_SECURITY_QUESTIONS
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description CredentialsType()
CredentialsType(PrismContext prismContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrismContainerValue
asPrismContainerValue()
NonceType
beginNonce()
PasswordType
beginPassword()
SecurityQuestionsCredentialsType
beginSecurityQuestions()
CredentialsType
clone()
<X> X
end()
boolean
equals(Object object)
Long
getId()
NonceType
getNonce()
PasswordType
getPassword()
SecurityQuestionsCredentialsType
getSecurityQuestions()
int
hashCode()
CredentialsType
id(Long value)
CredentialsType
nonce(NonceType value)
CredentialsType
password(PasswordType value)
CredentialsType
securityQuestions(SecurityQuestionsCredentialsType value)
void
setId(Long value)
void
setNonce(NonceType value)
void
setPassword(PasswordType value)
void
setSecurityQuestions(SecurityQuestionsCredentialsType value)
void
setupContainerValue(PrismContainerValue containerValue)
Setup value to the containerable representation.String
toString()
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Containerable
cloneWithoutId, debugDump
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
CredentialsType
public CredentialsType()
-
CredentialsType
public CredentialsType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
-
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
-
end
public <X> X end()
-
getPassword
public PasswordType getPassword()
-
setPassword
public void setPassword(PasswordType value)
-
getNonce
public NonceType getNonce()
-
setNonce
public void setNonce(NonceType value)
-
getSecurityQuestions
public SecurityQuestionsCredentialsType getSecurityQuestions()
-
setSecurityQuestions
public void setSecurityQuestions(SecurityQuestionsCredentialsType value)
-
getId
public Long getId()
-
setId
public void setId(Long value)
-
password
public CredentialsType password(PasswordType value)
-
beginPassword
public PasswordType beginPassword()
-
nonce
public CredentialsType nonce(NonceType value)
-
beginNonce
public NonceType beginNonce()
-
securityQuestions
public CredentialsType securityQuestions(SecurityQuestionsCredentialsType value)
-
beginSecurityQuestions
public SecurityQuestionsCredentialsType beginSecurityQuestions()
-
id
public CredentialsType id(Long value)
-
clone
public CredentialsType clone()
-
-