diff options
author | Ade Lee <alee@redhat.com> | 2012-01-19 00:50:47 -0500 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2012-02-08 16:02:45 -0500 |
commit | 2df8f6840ad5e4c2740db36b2f5fbf2c2979cf92 (patch) | |
tree | eac843faad75685745ee21304a8b3df3b9a73c7a /pki/base/common | |
parent | 0e038046bfdb2cf174450dcb80e2f0b2887947e2 (diff) | |
download | pki-2df8f6840ad5e4c2740db36b2f5fbf2c2979cf92.tar.gz pki-2df8f6840ad5e4c2740db36b2f5fbf2c2979cf92.tar.xz pki-2df8f6840ad5e4c2740db36b2f5fbf2c2979cf92.zip |
Change RecoveryRequest fields
When sending a passphrase in the recovery request, we need to wrap it
in a session key and store it in sessionWrappedPassphrase. We also
then wrap the session key in transWrappedSessionKey.
The server needs to do PBE if the sessionWrappedPassphrase
is present, and symkey based encryption otherwise.
Also changed the DRM test to reflect these changes, and fixed some errors.
Diffstat (limited to 'pki/base/common')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/servlet/request/model/RecoveryRequestData.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/request/model/RecoveryRequestData.java b/pki/base/common/src/com/netscape/cms/servlet/request/model/RecoveryRequestData.java index 88533a38d..c84d8f491 100644 --- a/pki/base/common/src/com/netscape/cms/servlet/request/model/RecoveryRequestData.java +++ b/pki/base/common/src/com/netscape/cms/servlet/request/model/RecoveryRequestData.java @@ -38,7 +38,7 @@ public class RecoveryRequestData { private static final String KEY_ID = "keyId"; private static final String REQUEST_ID = "requestId"; private static final String TRANS_WRAPPED_SESSION_KEY = "transWrappedSessionKey"; - private static final String TRANS_WRAPPED_PASSPHRASE = "transWrappedPassphrase"; + private static final String SESSION_WRAPPED_PASSPHRASE = "sessionWrappedPassphrase"; @XmlElement protected String keyId; @@ -50,7 +50,7 @@ public class RecoveryRequestData { protected String transWrappedSessionKey; @XmlElement - protected String transWrappedPassphrase; + protected String sessionWrappedPassphrase; public RecoveryRequestData() { // required for JAXB (defaults) @@ -60,7 +60,7 @@ public class RecoveryRequestData { keyId = form.getFirst(KEY_ID); requestId = form.getFirst(REQUEST_ID); transWrappedSessionKey = form.getFirst(TRANS_WRAPPED_SESSION_KEY); - transWrappedPassphrase = form.getFirst(TRANS_WRAPPED_PASSPHRASE); + sessionWrappedPassphrase = form.getFirst(SESSION_WRAPPED_PASSPHRASE); } /** @@ -106,17 +106,17 @@ public class RecoveryRequestData { } /** - * @return the transWrappedPassphrase + * @return the sessionWrappedPassphrase */ - public String getTransWrappedPassphrase() { - return transWrappedPassphrase; + public String getSessionWrappedPassphrase() { + return sessionWrappedPassphrase; } /** - * @param transWrappedPassphrase the transWrappedPassphrase to set + * @param sessionWrappedPassphrase the sessionWrappedPassphrase to set */ - public void setTransWrappedPassphrase(String transWrappedPassphrase) { - this.transWrappedPassphrase = transWrappedPassphrase; + public void setSessionWrappedPassphrase(String sessionWrappedPassphrase) { + this.sessionWrappedPassphrase = sessionWrappedPassphrase; } } |