aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-17 19:06:54 +0100
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-17 19:06:54 +0100
commitcb7942a2d5f13744b114fd6d4fad49aefdac12f1 (patch)
tree04cb5549a41325d0bc480fdc05e1bdce784eb136 /id/server/idserverlib/src/main/java
parenta9fab8fc750f9f31f1354e6d212eed7305f666b1 (diff)
downloadmoa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.tar.gz
moa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.tar.bz2
moa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.zip
attr not working completely
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java
index d89fb8cb2..44b140548 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java
@@ -43,7 +43,7 @@ public class MOAAttributeProvider {
public void populateAttribute(PersonalAttributeList attributeList, PersonalAttribute requestedAttribute ) {
String storkAttribute = requestedAttribute.getName();
-
+ Logger.setHierarchy("moa.id.protocols.stork2");
if (storkAttributeSimpleMapping.containsKey(storkAttribute)) {
Logger.debug("Trying to get value for attribute using simple mapping [" + storkAttribute + "]");
try {
@@ -70,6 +70,7 @@ public class MOAAttributeProvider {
}
private String geteIdentifier() {
+ Logger.setHierarchy("moa.id.protocols.stork2");
Logger.debug("Using base urn for identification value: " + identityLink.getIdentificationType() + " and target country: " + moastorkRequest.getStorkAuthnRequest().getSpCountry());
try {
return new BPKBuilder().buildStorkbPK(identityLink.getIdentificationValue(), moastorkRequest.getStorkAuthnRequest().getSpCountry());
@@ -81,6 +82,7 @@ public class MOAAttributeProvider {
private void populateAttributeWithMethod(Method method, Object object, PersonalAttributeList attributeList, String storkAttribute, Boolean isRequired) {
+ Logger.setHierarchy("moa.id.protocols.stork2");
try {
String attributeValue = method.invoke(object, new Class[]{}).toString();
PersonalAttribute newAttribute = new PersonalAttribute();
@@ -88,7 +90,7 @@ public class MOAAttributeProvider {
newAttribute.setStatus("Available");
newAttribute.setIsRequired(isRequired);
- Logger.debug("Got attribute value: " + attributeValue);
+ Logger.info("Got attribute value: " + attributeValue);
newAttribute.setValue(new ArrayList<String>(edu.emory.mathcs.backport.java.util.Collections.singletonList(attributeValue)));
attributeList.add(newAttribute);
} catch (InvocationTargetException e) {