diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-10-07 11:48:54 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-10-25 17:17:39 -0400 |
commit | 2119f1b218e9d68b13496e7042785d9c68753966 (patch) | |
tree | b8c7cf5692723340d8d56e5d8c401acdee059ca5 /base/common/src/com/netscape/cms/servlet/csadmin/Cert.java | |
parent | 7ca5adf1bd5bc4f9a7c5f2035426b9158007bb28 (diff) | |
download | pki-2119f1b218e9d68b13496e7042785d9c68753966.tar.gz pki-2119f1b218e9d68b13496e7042785d9c68753966.tar.xz pki-2119f1b218e9d68b13496e7042785d9c68753966.zip |
Reorganized server packages.
The tomcat, cms, and cmscore packages have been moved from base/common
into separate folders in base/server so that they can be built separately.
Diffstat (limited to 'base/common/src/com/netscape/cms/servlet/csadmin/Cert.java')
-rw-r--r-- | base/common/src/com/netscape/cms/servlet/csadmin/Cert.java | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/csadmin/Cert.java b/base/common/src/com/netscape/cms/servlet/csadmin/Cert.java deleted file mode 100644 index 066f9dea1..000000000 --- a/base/common/src/com/netscape/cms/servlet/csadmin/Cert.java +++ /dev/null @@ -1,188 +0,0 @@ -// --- BEGIN COPYRIGHT BLOCK --- -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; version 2 of the License. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this program; if not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -// -// (C) 2007 Red Hat, Inc. -// All rights reserved. -// --- END COPYRIGHT BLOCK --- -package com.netscape.cms.servlet.csadmin; - -public class Cert { - private String mNickname = ""; - private String mTokenname = ""; - private String mRequest = ""; - private String mCert = ""; - private String mType = ""; // "selfsign," "local," or "remote" - private String mDN = ""; - private String mCertTag = ""; - private String mCertpp = ""; - private String mUserFriendlyName = ""; - private String mKeyOption = ""; - private String mCustomKeysize = ""; - private String mCustomCurvename = ""; - private boolean mEnable = true; - private boolean mSigningRequired = false; - private String mSubsystem = ""; - private String certChain = ""; - - public Cert(String tokenName, String nickName, String certTag) { - mTokenname = tokenName; - mNickname = nickName; - mCertTag = certTag; - } - - public void setEnable(boolean enable) { - mEnable = enable; - } - - public boolean isEnable() { - return mEnable; - } - - public void setSigningRequired(boolean required) { - mSigningRequired = required; - } - - public boolean isSigningRequired() { - return mSigningRequired; - } - - public void setNickname(String s) { - mNickname = s; - } - - public String getNickname() { - return mNickname; - } - - public void setSubsystem(String s) { - mSubsystem = s; - } - - public String getSubsystem() { - return mSubsystem; - } - - public String getUserFriendlyName() { - return mUserFriendlyName; - } - - public void setUserFriendlyName(String name) { - mUserFriendlyName = name; - } - - public String getTokenname() { - return mTokenname; - } - - public String getRequest() { - return mRequest; - } - - public void setRequest(String req) { - mRequest = req; - } - - public String getEscapedCert() { - return escapeForHTML(mCert); - } - - public String getCert() { - return mCert; - } - - public void setCert(String cert) { - mCert = cert; - } - - public String getType() { - return mType; - } - - public void setType(String type) { - mType = type; - } - - public String escapeForHTML(String s) { - s = s.replaceAll("\"", """); - return s; - } - - public String getEscapedDN() { - // Need to escape " - return escapeForHTML(mDN); - } - - public String getDN() { - return mDN; - } - - public void setDN(String dn) { - mDN = dn; - } - - public String getCertTag() { - return mCertTag; - } - - public String getEscapedCertpp() { - return escapeForHTML(mCertpp); - } - - public String getCertpp() { - return mCertpp; - } - - public void setCertpp(String pp) { - mCertpp = pp; - } - - public String getKeyOption() { - return mKeyOption; - } - - /* - * "default" or "custom" - */ - public void setKeyOption(String option) { - mKeyOption = option; - } - - public boolean useDefaultKey() { - return (mKeyOption.equals("default")); - } - - public String getCustomKeysize() { - return mCustomKeysize; - } - - public void setCustomKeysize(String size) { - mCustomKeysize = size; - } - - public String getCustomCurvename() { - return mCustomCurvename; - } - - public void setCustomCurvename(String curve) { - mCustomCurvename = curve; - } - - public String getCertChain() { - return certChain; - } - - public void setCertChain(String certChain) { - this.certChain = certChain; - } -} |