diff options
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java b/pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java index 0471af42d..245428a6d 100644 --- a/pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java +++ b/pki/base/common/src/com/netscape/cms/crl/CMSCRLReasonExtension.java @@ -17,6 +17,7 @@ // --- END COPYRIGHT BLOCK --- package com.netscape.cms.crl; + import java.io.IOException; import java.util.Locale; @@ -32,36 +33,36 @@ import com.netscape.certsrv.ca.ICMSCRLExtension; import com.netscape.certsrv.common.NameValuePairs; import com.netscape.certsrv.logging.ILogger; + /** * This represents a CRL reason extension. - * + * * @version $Revision$, $Date$ */ -public class CMSCRLReasonExtension implements ICMSCRLExtension, - IExtendedPluginInfo { +public class CMSCRLReasonExtension + implements ICMSCRLExtension, IExtendedPluginInfo { private ILogger mLogger = CMS.getLogger(); public CMSCRLReasonExtension() { } - public Extension setCRLExtensionCriticality(Extension ext, boolean critical) { + public Extension setCRLExtensionCriticality(Extension ext, + boolean critical) { RevocationReason reason = null; CRLReasonExtension crlReasonExt = null; try { - reason = (RevocationReason) ((CRLReasonExtension) ext) - .get(CRLReasonExtension.REASON); - crlReasonExt = new CRLReasonExtension(Boolean.valueOf(critical), - reason); + reason = (RevocationReason) ((CRLReasonExtension) ext).get(CRLReasonExtension.REASON); + crlReasonExt = new CRLReasonExtension(Boolean.valueOf(critical), reason); } catch (IOException e) { - log(ILogger.LL_FAILURE, CMS.getLogMessage( - "CRL_CREATE_CRL_REASON_EXT", e.toString())); + log(ILogger.LL_FAILURE, CMS.getLogMessage("CRL_CREATE_CRL_REASON_EXT", e.toString())); } return crlReasonExt; } public Extension getCRLExtension(IConfigStore config, - Object crlIssuingPoint, boolean critical) { + Object crlIssuingPoint, + boolean critical) { CRLReasonExtension crlReasonExt = null; return crlReasonExt; @@ -76,21 +77,22 @@ public class CMSCRLReasonExtension implements ICMSCRLExtension, public String[] getExtendedPluginInfo(Locale locale) { String[] params = { - // "type;choice(CRLExtension,CRLEntryExtension);"+ - // "CRL Entry Extension type. This field is not editable.", + //"type;choice(CRLExtension,CRLEntryExtension);"+ + //"CRL Entry Extension type. This field is not editable.", "enable;boolean;Check to enable reason code CRL entry extension.", "critical;boolean;Set criticality for reason code CRL entry extension.", - IExtendedPluginInfo.HELP_TOKEN - + ";configuration-ca-edit-crlextension-crlreason", - IExtendedPluginInfo.HELP_TEXT - + ";The CRL reason code is a non-critical CRL entry extension " - + "that identifies the reason for the certificate revocation." }; + IExtendedPluginInfo.HELP_TOKEN + + ";configuration-ca-edit-crlextension-crlreason", + IExtendedPluginInfo.HELP_TEXT + + ";The CRL reason code is a non-critical CRL entry extension " + + "that identifies the reason for the certificate revocation." + }; return params; } private void log(int level, String msg) { mLogger.log(ILogger.EV_SYSTEM, null, ILogger.S_CA, level, - "CMSCRLReasonExtension - " + msg); + "CMSCRLReasonExtension - " + msg); } -} +} |