com.evolveum.midpoint.xml.ns._public.common.common_2a
Class CredentialsType

java.lang.Object
  extended by com.evolveum.midpoint.xml.ns._public.common.common_2a.CredentialsType
All Implemented Interfaces:
Containerable, java.io.Serializable, java.lang.Cloneable

public class CredentialsType
extends java.lang.Object
implements java.io.Serializable, java.lang.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 and that's actually also the only supported 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. This is not perfect. It may change in the future. TODO: support for "old password", e.g. some resource need it to change password.

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-2a}PasswordType" minOccurs="0"/>
         <element name="allowedIdmAdminGuiAccess" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
static javax.xml.namespace.QName COMPLEX_TYPE
           
static javax.xml.namespace.QName F_ALLOWED_IDM_ADMIN_GUI_ACCESS
           
static javax.xml.namespace.QName F_PASSWORD
           
 
Constructor Summary
CredentialsType()
           
 
Method Summary
 PrismContainerValue asPrismContainerValue()
           
 CredentialsType clone()
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getId()
           
 PasswordType getPassword()
           
 int hashCode()
           
 java.lang.Boolean isAllowedIdmAdminGuiAccess()
           
 void setAllowedIdmAdminGuiAccess(java.lang.Boolean value)
           
 void setId(java.lang.String value)
           
 void setPassword(PasswordType value)
           
 void setupContainerValue(PrismContainerValue containerValue)
          Setup value to the containerable representation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPLEX_TYPE

public static final javax.xml.namespace.QName COMPLEX_TYPE

F_PASSWORD

public static final javax.xml.namespace.QName F_PASSWORD

F_ALLOWED_IDM_ADMIN_GUI_ACCESS

public static final javax.xml.namespace.QName F_ALLOWED_IDM_ADMIN_GUI_ACCESS
Constructor Detail

CredentialsType

public CredentialsType()
Method Detail

asPrismContainerValue

public PrismContainerValue asPrismContainerValue()
Specified by:
asPrismContainerValue in interface Containerable

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 interface Containerable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getPassword

public PasswordType getPassword()

setPassword

public void setPassword(PasswordType value)

isAllowedIdmAdminGuiAccess

public java.lang.Boolean isAllowedIdmAdminGuiAccess()

setAllowedIdmAdminGuiAccess

public void setAllowedIdmAdminGuiAccess(java.lang.Boolean value)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String value)

clone

public CredentialsType clone()
Overrides:
clone in class java.lang.Object


Copyright © 2012 evolveum. All Rights Reserved.