-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secrets provider: fixed implementation for serialization/deserializat…
…ion of protected data type with provider/key support
- Loading branch information
Showing
7 changed files
with
186 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
...a/prism-api/src/main/java/com/evolveum/prism/xml/ns/_public/types_3/ExternalDataType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
// | ||
// 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 java.util.Objects; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
import com.evolveum.midpoint.prism.JaxbVisitable; | ||
import com.evolveum.midpoint.prism.JaxbVisitor; | ||
|
||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "ExternalDataType", propOrder = { | ||
"provider", | ||
"key", | ||
}) | ||
public class ExternalDataType implements Serializable, Cloneable, JaxbVisitable { | ||
|
||
protected String provider; | ||
protected String key; | ||
|
||
public String getProvider() { | ||
return provider; | ||
} | ||
|
||
public void setProvider(String value) { | ||
this.provider = value; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String value) { | ||
this.key = value; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) {return true;} | ||
if (o == null || getClass() != o.getClass()) {return false;} | ||
ExternalDataType that = (ExternalDataType) o; | ||
return Objects.equals(provider, that.provider) && Objects.equals(key, that.key); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(provider, key); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ExternalDataType(provider=" + provider + ", key=" + key + ")"; | ||
} | ||
|
||
@Override | ||
public ExternalDataType clone() { | ||
ExternalDataType cloned = new ExternalDataType(); | ||
cloned.setProvider(getProvider()); | ||
cloned.setKey(getKey()); | ||
return cloned; | ||
} | ||
|
||
@Override | ||
public void accept(JaxbVisitor visitor) { | ||
visitor.visit(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.