Class PkiMessage

  • Direct Known Subclasses:
    DecodedPkiMessage

    public class PkiMessage
    extends java.lang.Object
    SCEP PKI-Message.
    Author:
    Lijun Liao (xipki)
    • Method Detail

      • getSenderNonce

        public Nonce getSenderNonce()
      • 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