diff options
author | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-03-17 19:06:54 +0100 |
---|---|---|
committer | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-03-17 19:06:54 +0100 |
commit | cb7942a2d5f13744b114fd6d4fad49aefdac12f1 (patch) | |
tree | 04cb5549a41325d0bc480fdc05e1bdce784eb136 | |
parent | a9fab8fc750f9f31f1354e6d212eed7305f666b1 (diff) | |
download | moa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.tar.gz moa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.tar.bz2 moa-id-spss-cb7942a2d5f13744b114fd6d4fad49aefdac12f1.zip |
attr not working completely
-rw-r--r-- | id/server/SamlEngine-VIDP/target/SamlEngine-1.4.0.jar | bin | 154269 -> 0 bytes | |||
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MOAAttributeProvider.java | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/id/server/SamlEngine-VIDP/target/SamlEngine-1.4.0.jar b/id/server/SamlEngine-VIDP/target/SamlEngine-1.4.0.jar Binary files differdeleted file mode 100644 index 2e549afd5..000000000 --- a/id/server/SamlEngine-VIDP/target/SamlEngine-1.4.0.jar +++ /dev/null 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) { |