diff options
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20VdaResponseException.java')
-rw-r--r-- | eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20VdaResponseException.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20VdaResponseException.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20VdaResponseException.java new file mode 100644 index 00000000..47f309f6 --- /dev/null +++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20VdaResponseException.java @@ -0,0 +1,41 @@ +package at.gv.egiz.eaaf.modules.auth.sl20.exceptions; + +import javax.annotation.Nullable; + +public class SL20VdaResponseException extends SL20Exception { + + private static final long serialVersionUID = 6834803380740916320L; + + private String vdaSessionId = null; + + public SL20VdaResponseException(String messageId, Object[] parameters) { + super(messageId, parameters); + + } + + public SL20VdaResponseException(String messageId, Object[] parameters, Throwable wrapped) { + super(messageId, parameters, wrapped); + + } + + /** + * Get a SessionId that was provided by VDA in SL2.0 error-response. + * + * @return SessionId for an additional VDA request, or <code>null</code> + * if no SessionId was provided. + */ + @Nullable + public String getVdaSessionId() { + return vdaSessionId; + } + + /** + * Set SessionId from VDA that can be used for an further request to VDA for the same user. + * + * @param vdaSessionId SessionId provided by VDA + */ + public void setVdaSessionId(@Nullable String vdaSessionId) { + this.vdaSessionId = vdaSessionId; + } + +} |