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

java.lang.Object
  extended by com.evolveum.midpoint.xml.ns._public.common.common_2a.ProtectedStringType
All Implemented Interfaces:
Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

public class ProtectedStringType
extends Object
implements Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

This is a general-purpose type to store sensitive values that should be encrypted in the repository. It is using starndard XML Encryption schema.

Java class for ProtectedStringType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ProtectedStringType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptedData"/>
         <element name="clearValue" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  String clearValue
           
static QName COMPLEX_TYPE
           
protected  EncryptedDataType encryptedData
           
static QName F_CLEAR_VALUE
           
static QName F_ENCRYPTED_DATA
           
 
Constructor Summary
ProtectedStringType()
          Creates a new ProtectedStringType instance.
ProtectedStringType(ProtectedStringType o)
          Creates a new ProtectedStringType instance by deeply copying a given ProtectedStringType instance.
 
Method Summary
 ProtectedStringType clone()
          Creates and returns a deep copy of this object.
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 String getClearValue()
          Gets the value of the clearValue property.
 EncryptedDataType getEncryptedData()
          Use of XML Encryption standard EncryptionData element.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 void setClearValue(String value)
          Sets the value of the clearValue property.
 void setEncryptedData(EncryptedDataType value)
          Sets the value of the encryptedData property.
 String toString()
          Generates a String representation of the contents of this type.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

encryptedData

protected EncryptedDataType encryptedData

clearValue

protected String clearValue

COMPLEX_TYPE

public static final QName COMPLEX_TYPE

F_ENCRYPTED_DATA

public static final QName F_ENCRYPTED_DATA

F_CLEAR_VALUE

public static final QName F_CLEAR_VALUE
Constructor Detail

ProtectedStringType

public ProtectedStringType()
Creates a new ProtectedStringType instance.


ProtectedStringType

public ProtectedStringType(ProtectedStringType o)
Creates a new ProtectedStringType instance by deeply copying a given ProtectedStringType instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getEncryptedData

public EncryptedDataType getEncryptedData()
Use of XML Encryption standard EncryptionData element.

Returns:
possible object is EncryptedDataType

setEncryptedData

public void setEncryptedData(EncryptedDataType value)
Sets the value of the encryptedData property.

Parameters:
value - allowed object is EncryptedDataType

getClearValue

public String getClearValue()
Gets the value of the clearValue property.

Returns:
possible object is String

setClearValue

public void setClearValue(String value)
Sets the value of the clearValue property.

Parameters:
value - allowed object is String

toString

public String toString()
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin

Overrides:
toString in class Object

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

clone

public ProtectedStringType clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class Object
Returns:
A deep copy of this object.


Copyright © 2013 evolveum. All Rights Reserved.