Package org.xipki.scep.message
Class PkiMessage
- java.lang.Object
-
- org.xipki.scep.message.PkiMessage
-
- Direct Known Subclasses:
DecodedPkiMessage
public class PkiMessage extends java.lang.ObjectSCEP PKI-Message.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description PkiMessage(TransactionId transactionId, MessageType messageType)PkiMessage(TransactionId transactionId, MessageType messageType, Nonce senderNonce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1EncodableaddSignendAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value)org.bouncycastle.asn1.ASN1EncodableaddUnsignendAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value)org.bouncycastle.asn1.cms.ContentInfoencode(java.security.PrivateKey signerKey, org.xipki.security.SignAlgo signatureAlgorithm, org.xipki.security.X509Cert signerCert, org.xipki.security.X509Cert[] signerCertSet, org.xipki.security.X509Cert recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier encAlgId)org.bouncycastle.asn1.cms.ContentInfoencode(org.bouncycastle.operator.ContentSigner signer, org.xipki.security.X509Cert signerCert, org.xipki.security.X509Cert[] cmsCertSet, org.xipki.security.X509Cert recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier encAlgId)FailInfogetFailInfo()java.lang.StringgetFailInfoText()org.bouncycastle.asn1.ASN1EncodablegetMessageData()MessageTypegetMessageType()PkiStatusgetPkiStatus()NoncegetRecipientNonce()NoncegetSenderNonce()org.bouncycastle.asn1.ASN1EncodablegetSignedAtrributeValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type)TransactionIdgetTransactionId()org.bouncycastle.asn1.ASN1EncodablegetUnsignedAtrributeValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type)org.bouncycastle.asn1.ASN1EncodableremoveSignedAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type)org.bouncycastle.asn1.ASN1EncodableremoveUnsignedAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type)voidsetFailInfo(FailInfo failInfo)voidsetFailInfoText(java.lang.String failInfoText)voidsetMessageData(org.bouncycastle.asn1.ASN1Encodable messageData)voidsetPkiStatus(PkiStatus pkiStatus)voidsetRecipientNonce(Nonce recipientNonce)
-
-
-
Constructor Detail
-
PkiMessage
public PkiMessage(TransactionId transactionId, MessageType messageType)
-
PkiMessage
public PkiMessage(TransactionId transactionId, MessageType messageType, Nonce senderNonce)
-
-
Method Detail
-
getTransactionId
public TransactionId getTransactionId()
-
getSenderNonce
public Nonce getSenderNonce()
-
getMessageType
public MessageType getMessageType()
-
getRecipientNonce
public Nonce getRecipientNonce()
-
setRecipientNonce
public void setRecipientNonce(Nonce recipientNonce)
-
getPkiStatus
public PkiStatus getPkiStatus()
-
setPkiStatus
public void setPkiStatus(PkiStatus pkiStatus)
-
getFailInfo
public FailInfo getFailInfo()
-
setFailInfo
public void setFailInfo(FailInfo failInfo)
-
getFailInfoText
public java.lang.String getFailInfoText()
-
setFailInfoText
public void setFailInfoText(java.lang.String failInfoText)
-
getMessageData
public org.bouncycastle.asn1.ASN1Encodable getMessageData()
-
setMessageData
public void setMessageData(org.bouncycastle.asn1.ASN1Encodable messageData)
-
addSignendAttribute
public org.bouncycastle.asn1.ASN1Encodable addSignendAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value)
-
addUnsignendAttribute
public org.bouncycastle.asn1.ASN1Encodable addUnsignendAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value)
-
removeSignedAttribute
public org.bouncycastle.asn1.ASN1Encodable removeSignedAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
-
removeUnsignedAttribute
public org.bouncycastle.asn1.ASN1Encodable removeUnsignedAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
-
getSignedAtrributeValue
public org.bouncycastle.asn1.ASN1Encodable getSignedAtrributeValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
-
getUnsignedAtrributeValue
public org.bouncycastle.asn1.ASN1Encodable getUnsignedAtrributeValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
-
encode
public org.bouncycastle.asn1.cms.ContentInfo encode(java.security.PrivateKey signerKey, org.xipki.security.SignAlgo signatureAlgorithm, org.xipki.security.X509Cert signerCert, org.xipki.security.X509Cert[] signerCertSet, org.xipki.security.X509Cert recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier encAlgId) throws MessageEncodingException- Throws:
MessageEncodingException
-
encode
public org.bouncycastle.asn1.cms.ContentInfo encode(org.bouncycastle.operator.ContentSigner signer, org.xipki.security.X509Cert signerCert, org.xipki.security.X509Cert[] cmsCertSet, org.xipki.security.X509Cert recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier encAlgId) throws MessageEncodingException- Throws:
MessageEncodingException
-
-