diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-01-21 14:38:35 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-01-27 16:38:56 +0100 |
commit | 9cb68043945f53246928443cea723b58ee2b1c24 (patch) | |
tree | c612cb928452d27d6fc5e3014d5f044fac643b22 /id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java | |
parent | 6c7a6f8e222e4fb39a11c220b63e785f2037d428 (diff) | |
download | moa-id-spss-9cb68043945f53246928443cea723b58ee2b1c24.tar.gz moa-id-spss-9cb68043945f53246928443cea723b58ee2b1c24.tar.bz2 moa-id-spss-9cb68043945f53246928443cea723b58ee2b1c24.zip |
updated samlengine
Diffstat (limited to 'id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java')
-rw-r--r-- | id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java b/id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java index bb9b3b694..5d8281445 100644 --- a/id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java +++ b/id/server/stork2-commons/src/main/java/eu/stork/peps/auth/commons/PersonalAttribute.java @@ -18,6 +18,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.apache.log4j.Logger; @@ -56,9 +57,14 @@ public final class PersonalAttribute implements Serializable, Cloneable { private List<String> value = new ArrayList<String>(); /** + * Type of the personal attribute. + */ + private String type; + + /** * Complex values of the personal attribute. */ - private Map<String, String> complexValue = new HashMap<String, String>(); + private Map<String, String> complexValue = new ConcurrentHashMap<String, String>(); /** * Is the personal attribute mandatory? @@ -202,6 +208,25 @@ public final class PersonalAttribute implements Serializable, Cloneable { } } + + /** + * Getter for the type value. + * + * @return The name value. + */ + public String getType() { + return type; + } + + /** + * Setter for the type value. + * + * @param attrName The personal attribute type. + */ + public void setType(final String attrType) { + this.type = attrType; + } + /** * Getter for the status. * |