📄 basecmpmessage.java
字号:
/************************************************************************* * * * EJBCA: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/package org.ejbca.core.protocol.cmp;import org.bouncycastle.asn1.x509.GeneralName;import com.novosec.pkix.asn1.cmp.PKIHeader;import com.novosec.pkix.asn1.cmp.PKIMessage;public abstract class BaseCmpMessage { private PKIMessage msg = null; private String b64SenderNonce = null; private String b64RecipientNonce = null; private String b64TransId = null; private GeneralName recipient = null; private GeneralName sender = null; private String protectionType = null; private String pbeDigestAlg = null; private String pbeMacAlg = null; private int pbeIterationCount = 1024; private String pbeKeyId = null; private String pbeKey = null; public void setSenderNonce(String b64nonce) { this.b64SenderNonce = b64nonce; } public String getSenderNonce() { return b64SenderNonce; } public void setRecipientNonce(String b64nonce) { this.b64RecipientNonce = b64nonce; } public String getRecipientNonce() { return b64RecipientNonce; } public void setTransactionId(String b64transid) { this.b64TransId = b64transid; } public String getTransactionId() { return b64TransId; } public GeneralName getRecipient() { return recipient; } public void setRecipient(GeneralName recipient) { this.recipient = recipient; } public GeneralName getSender() { return sender; } public void setSender(GeneralName sender) { this.sender = sender; } public PKIHeader getHeader() { return msg.getHeader(); } public PKIMessage getMessage() { return msg; } public void setMessage(PKIMessage msg) { this.msg = msg; } public String getProtectionType() { return protectionType; } public void setProtectionType(String protectionType) { this.protectionType = protectionType; } public void setPbeParameters(String keyId, String key, String digestAlg, String macAlg, int iterationCount) { this.pbeKeyId = keyId; this.pbeKey = key; this.pbeDigestAlg = digestAlg; this.pbeMacAlg = macAlg; this.pbeIterationCount = iterationCount; } public String getPbeDigestAlg() { return pbeDigestAlg; } public String getPbeKey() { return pbeKey; } public String getPbeKeyId() { return pbeKeyId; } public String getPbeMacAlg() { return pbeMacAlg; } public int getPbeIterationCount() { return pbeIterationCount; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -