diff options
author | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-07-19 01:25:01 +0000 |
---|---|---|
committer | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-07-19 01:25:01 +0000 |
commit | edd605f8ee83ffd902a9876136a80f586f0af637 (patch) | |
tree | f4c78f9d16ef0425b5ab0b0a7a0bf4bf0b507f77 /pki/base/util | |
parent | 1d924c933024bc526dae36f158332c8c30385d9f (diff) | |
download | pki-edd605f8ee83ffd902a9876136a80f586f0af637.tar.gz pki-edd605f8ee83ffd902a9876136a80f586f0af637.tar.xz pki-edd605f8ee83ffd902a9876136a80f586f0af637.zip |
Fix Bugzilla Bug# 719007 - Key Constraint keyParameter being ignored using an ECC CA to generate ECC certs from CRMF.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2064 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/util')
-rw-r--r-- | pki/base/util/src/netscape/security/x509/AlgorithmId.java | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/pki/base/util/src/netscape/security/x509/AlgorithmId.java b/pki/base/util/src/netscape/security/x509/AlgorithmId.java index e01049e73..f3e72656d 100644 --- a/pki/base/util/src/netscape/security/x509/AlgorithmId.java +++ b/pki/base/util/src/netscape/security/x509/AlgorithmId.java @@ -23,7 +23,6 @@ import java.util.Properties; import netscape.security.util.*; - /** * This class identifies algorithms, such as cryptographic transforms, each * of which may be associated with parameters. Instances of this base class @@ -72,6 +71,8 @@ public class AlgorithmId implements Serializable, DerEncoder { protected DerValue params = null; + protected String paramsString = null; + /** * Returns one of the algorithm IDs most commonly associated * with this algorithm name. @@ -90,6 +91,15 @@ public class AlgorithmId implements Serializable, DerEncoder { return this.algParams; } + public String getParametersString() { + return this.paramsString; + } + + public void setParametersString(String paramStr) { + + this.paramsString = paramStr; + } + /** * Returns one of the algorithm IDs most commonly associated * with this algorithm name. @@ -151,6 +161,21 @@ public class AlgorithmId implements Serializable, DerEncoder { AlgorithmId alg = new AlgorithmId(algid, params); if (params != null) alg.decodeParams(); + + + /* + * Set the raw params string in case + * higher level code might want the info + */ + + String paramStr = null; + + if ( params != null ) { + paramStr = params.toString(); + } + + alg.setParametersString(paramStr); + return alg; } |