2019-03-22 15:18:23 +01:00
|
|
|
package org.gcube.informationsystem.model.reference.properties;
|
|
|
|
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonGetter;
|
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonSetter;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2019-03-22 15:18:23 +01:00
|
|
|
import org.gcube.informationsystem.model.impl.properties.EncryptedImpl;
|
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 11:28:34 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
2019-03-22 15:18:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=EncryptedImpl.class)
|
2020-12-23 10:33:17 +01:00
|
|
|
@TypeMetadata(name = Encrypted.NAME, description = "This is the base class for Encrypted values", version = TypeVersion.MINIMAL_VERSION_STRING)
|
2020-12-15 11:28:34 +01:00
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:18:23 +01:00
|
|
|
public interface Encrypted extends Property {
|
|
|
|
|
2020-12-23 10:33:17 +01:00
|
|
|
public static final String NAME = "Encrypted"; // Encrypted.class.getSimpleName();
|
2019-03-22 15:18:23 +01:00
|
|
|
public static final String VALUE = "value";
|
|
|
|
|
|
|
|
@ISProperty(name=VALUE, readonly=false, mandatory=true, nullable=false)
|
|
|
|
@JsonGetter(value=VALUE)
|
|
|
|
public String getEncryptedValue();
|
|
|
|
|
|
|
|
@JsonSetter(value=VALUE)
|
|
|
|
public void setEncryptedValue(String encryptedValue);
|
|
|
|
|
|
|
|
}
|