aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-02-18 18:13:19 +0100
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-02-18 18:13:19 +0100
commitad0a0adca1ab94f42ed65d9ccf2c68e283a728aa (patch)
treec32d95373b5a44c04f63bbdcb72a44aef3e65732 /id/server/idserverlib
parentefa960b616d81e762905b531814560616b98eab4 (diff)
downloadmoa-id-spss-ad0a0adca1ab94f42ed65d9ccf2c68e283a728aa.tar.gz
moa-id-spss-ad0a0adca1ab94f42ed65d9ccf2c68e283a728aa.tar.bz2
moa-id-spss-ad0a0adca1ab94f42ed65d9ccf2c68e283a728aa.zip
saml point
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java26
1 files changed, 23 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
index 55d5f3626..2debe7452 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
@@ -97,11 +97,30 @@ public class AuthenticationRequest implements IAction {
authnResponse.setCountry("AT");
+ IPersonalAttributeList attrLst = ((STORKAuthnRequestDEL)req).getStorkAuthnRequest().getPersonalAttributeList();
+ Logger.info("Found number of authnreq personal attributes: " + attrLst.size());
+
+ try {
+ for (PersonalAttribute personalAttribute : attrLst) {
+ Logger.info("Personal authnreq attribute found: " + personalAttribute.getName() + " status: " + personalAttribute.getStatus() + " isrequired: " + personalAttribute.isRequired() + " type: " + personalAttribute.getType());
+
+ if (personalAttribute.getValue().size() > 0) {
+ for (String value : personalAttribute.getValue()) {
+ Logger.info(" Value found: " + value);
+ }
+ }
+ }
+ } catch (Exception e) {
+ Logger.error("Exception, attributes: " + e.getMessage());
+ }
+
+
try {
+ IPersonalAttributeList moaAttrList = moasession.getStorkAttributes();
+ Logger.info("Found number of moa personal attributes: " + moasession.getStorkAttributes().size());
- IPersonalAttributeList moaAttrList = moasession.getStorkAttributes();
- for (PersonalAttribute personalAttribute : moaAttrList) {
+ for (PersonalAttribute personalAttribute : moaAttrList) {
Logger.info("Personal attribute found: " + personalAttribute.getName() + personalAttribute.getStatus());
if (personalAttribute.getValue().size() > 0) {
for (String value : personalAttribute.getValue()) {
@@ -142,7 +161,8 @@ public class AuthenticationRequest implements IAction {
Logger.debug("authn status code value: " + statusCodeValue);
try {
- Logger.debug("authn saml:" + IOUtils.toString(authnResponse.getTokenSaml()));
+ Logger.debug("authn saml plain:" + authnResponse.getTokenSaml());
+ Logger.debug("authn saml string:" + new String(authnResponse.getTokenSaml())); // radi
Logger.debug("authn saml encodedx: " + new String(org.bouncycastle.util.encoders.Base64.encode(IOUtils.toString(authnResponse.getTokenSaml()).getBytes())));
} catch (IOException e) {