diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-01-31 08:42:39 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-01-31 08:42:39 +0100 |
commit | 9e75e06b799e2baeae88a9e4b0e16acf0e292965 (patch) | |
tree | d205ff7b71a70b3e8672fd8acd97107013eaa7a9 /id/server/moa-id-commons/src | |
parent | d4a8d57e4cd10fc7e427f936983ae7c28aa6eab2 (diff) | |
download | moa-id-spss-9e75e06b799e2baeae88a9e4b0e16acf0e292965.tar.gz moa-id-spss-9e75e06b799e2baeae88a9e4b0e16acf0e292965.tar.bz2 moa-id-spss-9e75e06b799e2baeae88a9e4b0e16acf0e292965.zip |
update SessionEncryption to use IAIK JCE and salt for encryption
Diffstat (limited to 'id/server/moa-id-commons/src')
-rw-r--r-- | id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java index 64f543973..730a328ab 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java @@ -74,6 +74,9 @@ public class AuthenticatedSessionStore implements Serializable{ @Column(name = "session", nullable=false) @Lob private byte [] session; + @Column(name = "iv", nullable=true) + @Lob private byte [] iv; + @Column(name = "isAuthenticated", nullable=false) private boolean isAuthenticated = false; @@ -205,5 +208,21 @@ public class AuthenticatedSessionStore implements Serializable{ this.pendingRequestID = pendingRequestID; } + /** + * @return the iv + */ + public byte[] getIv() { + return iv; + } + + /** + * @param iv the iv to set + */ + public void setIv(byte[] iv) { + this.iv = iv; + } + + + } |