diff options
| author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-10-30 16:46:31 +0100 | 
|---|---|---|
| committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-10-30 16:46:31 +0100 | 
| commit | 0a2bc8013cc6dc737bd653a4ec8a221d35d9538f (patch) | |
| tree | 6e865fde9440db801a1e41a7839726542804c619 /id/server/idserverlib/src/main/java/at/gv | |
| parent | f875f9fbca20f5be3ec5a18ef905ae6e68091b7d (diff) | |
| download | moa-id-spss-0a2bc8013cc6dc737bd653a4ec8a221d35d9538f.tar.gz moa-id-spss-0a2bc8013cc6dc737bd653a4ec8a221d35d9538f.tar.bz2 moa-id-spss-0a2bc8013cc6dc737bd653a4ec8a221d35d9538f.zip | |
update log messages
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
3 files changed, 16 insertions, 4 deletions
| diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java index a2570ed7e..063d7d8e4 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java @@ -277,11 +277,10 @@ public class BPKBuilder {              MessageDigest md = MessageDigest.getInstance("SHA-1");              byte[] hash = md.digest(basisbegriff.getBytes("ISO-8859-1"));              String hashBase64 = Base64Utils.encode(hash); -            Logger.debug("STORK identification defined as: " + hashBase64);              return hashBase64;          } catch (Exception ex) { -            throw new BuildException("builder.00", new Object[]{"storkid", ex.toString()}, ex); +            throw new BuildException("builder.00", new Object[]{"bPK/wbPK", ex.toString()}, ex);          }      } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/PVPAttributeBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/PVPAttributeBuilder.java index 8b6e71e6b..3d8661143 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/PVPAttributeBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/PVPAttributeBuilder.java @@ -150,14 +150,14 @@ public class PVPAttributeBuilder {  	}  	public static Attribute buildAttribute(String name, OAAuthParameter oaParam, -			IAuthData authData) throws PVP2Exception { +			IAuthData authData) throws PVP2Exception, AttributeException {  		if (builders.containsKey(name)) {  			try {  				return builders.get(name).build(oaParam, authData, generator);  			}  			catch (AttributeException e) {  				if (e instanceof UnavailableAttributeException) { -					throw new UnprovideableAttributeException(((UnavailableAttributeException) e).getAttributeName()); +					throw e;  				} else if (e instanceof InvalidDateFormatAttributeException) {  					throw new InvalidDateFormatException();  				} else if (e instanceof NoMandateDataAttributeException) { diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java index 3b01e91ad..7c2476b3d 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java @@ -70,6 +70,8 @@ import at.gv.egovernment.moa.id.data.IAuthData;  import at.gv.egovernment.moa.id.data.SLOInformationImpl;  import at.gv.egovernment.moa.id.protocols.pvp2x.PVPConstants;  import at.gv.egovernment.moa.id.protocols.pvp2x.builder.PVPAttributeBuilder; +import at.gv.egovernment.moa.id.protocols.pvp2x.builder.attributes.exceptions.AttributeException; +import at.gv.egovernment.moa.id.protocols.pvp2x.builder.attributes.exceptions.UnavailableAttributeException;  import at.gv.egovernment.moa.id.protocols.pvp2x.config.PVPConfiguration;  import at.gv.egovernment.moa.id.protocols.pvp2x.exceptions.MandateAttributesNotHandleAbleException;  import at.gv.egovernment.moa.id.protocols.pvp2x.exceptions.NoMandateDataAvailableException; @@ -251,6 +253,17 @@ public class PVP2AssertionBuilder implements PVPConstants {  						} else {  							attrList.add(attr);  						} +					 +					} catch (UnavailableAttributeException e) { +						Logger.info( +								"Attribute generation for " +										+ reqAttribut.getFriendlyName() + " not possible."); +						if (reqAttribut.isRequired()) { +							throw new UnprovideableAttributeException( +									reqAttribut.getName()); +						} +						 +					  					} catch (PVP2Exception e) {  						Logger.error(  								"Attribute generation failed! for " | 
