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:
java.io.Serializable, java.lang.Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

public class ProtectedStringType
extends java.lang.Object
implements java.io.Serializable, java.lang.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  java.lang.String clearValue
           
static javax.xml.namespace.QName COMPLEX_TYPE
           
protected  EncryptedDataType encryptedData
           
static javax.xml.namespace.QName F_CLEAR_VALUE
           
static javax.xml.namespace.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(java.lang.Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 java.lang.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(java.lang.String value)
          Sets the value of the clearValue property.
 void setEncryptedData(EncryptedDataType value)
          Sets the value of the encryptedData property.
 java.lang.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 java.lang.String clearValue

COMPLEX_TYPE

public static final javax.xml.namespace.QName COMPLEX_TYPE

F_ENCRYPTED_DATA

public static final javax.xml.namespace.QName F_ENCRYPTED_DATA

F_CLEAR_VALUE

public static final javax.xml.namespace.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:
java.lang.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 java.lang.String getClearValue()
Gets the value of the clearValue property.

Returns:
possible object is String

setClearValue

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

Parameters:
value - allowed object is String

toString

public java.lang.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 java.lang.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 java.lang.Object

equals

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

equals

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

clone

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

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


Copyright © 2012 evolveum. All Rights Reserved.