//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.02.04 at 01:34:24 PM CET
//
package com.evolveum.prism.xml.ns._public.types_3;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* TODO
*
* Loosely based on XML encryption standard. But we cannot use full
* standard as we are not bound to XML. We need this to work also for
* JSON and YAML and other languages.
*
*
* <p>Java class for EncryptionMethodType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EncryptionMethodType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="algorithm" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EncryptionMethodType", propOrder = {
"algorithm"
})
public class EncryptionMethodType implements Serializable, Cloneable {
@XmlElement(required = true)
@XmlSchemaType(name = "anyURI")
protected String algorithm;
/**
* Gets the value of the algorithm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlgorithm() {
return algorithm;
}
/**
* Sets the value of the algorithm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlgorithm(String value) {
this.algorithm = value;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
EncryptionMethodType other = (EncryptionMethodType) obj;
if (algorithm == null) {
if (other.algorithm != null)
return false;
} else if (!algorithm.equals(other.algorithm))
return false;
return true;
}
@Override
public String toString() {
return "EncryptionMethodType(algorithm=" + algorithm + ")";
}
public EncryptionMethodType clone() {
EncryptionMethodType cloned = new EncryptionMethodType();
cloned.setAlgorithm(getAlgorithm());
return cloned;
}
}