Package org.xipki.cmp

Class CmpUtil


  • public class CmpUtil
    extends java.lang.Object
    CMP utility class.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bouncycastle.asn1.cmp.PKIMessage addProtection​(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage, char[] password, org.bouncycastle.asn1.cmp.PBMParameter pbmParameter, org.bouncycastle.asn1.x509.GeneralName signerName, byte[] senderKid)  
      static org.bouncycastle.asn1.cmp.PKIMessage addProtection​(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage, org.xipki.security.ConcurrentContentSigner signer, org.bouncycastle.asn1.x509.GeneralName signerName, boolean addSignerCert)  
      static org.bouncycastle.asn1.crmf.AttributeTypeAndValue buildAttributeTypeAndValue​(CmpUtf8Pairs utf8Pairs)  
      static org.bouncycastle.asn1.cmp.InfoTypeAndValue buildInfoTypeAndValue​(CmpUtf8Pairs utf8Pairs)  
      static java.lang.String[] extractCertProfile​(org.bouncycastle.asn1.cmp.InfoTypeAndValue[] generalInfo)  
      static CmpUtf8Pairs extractUtf8Pairs​(org.bouncycastle.asn1.cmp.InfoTypeAndValue[] generalInfo)  
      static CmpUtf8Pairs extractUtf8Pairs​(org.bouncycastle.asn1.crmf.AttributeTypeAndValue[] atvs)  
      static org.bouncycastle.asn1.cmp.InfoTypeAndValue getImplicitConfirmGeneralInfo()  
      static boolean isImplicitConfirm​(org.bouncycastle.asn1.cmp.PKIHeader header)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addProtection

        public static org.bouncycastle.asn1.cmp.PKIMessage addProtection​(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage,
                                                                         org.xipki.security.ConcurrentContentSigner signer,
                                                                         org.bouncycastle.asn1.x509.GeneralName signerName,
                                                                         boolean addSignerCert)
                                                                  throws org.bouncycastle.cert.cmp.CMPException,
                                                                         org.xipki.security.NoIdleSignerException
        Throws:
        org.bouncycastle.cert.cmp.CMPException
        org.xipki.security.NoIdleSignerException
      • addProtection

        public static org.bouncycastle.asn1.cmp.PKIMessage addProtection​(org.bouncycastle.asn1.cmp.PKIMessage pkiMessage,
                                                                         char[] password,
                                                                         org.bouncycastle.asn1.cmp.PBMParameter pbmParameter,
                                                                         org.bouncycastle.asn1.x509.GeneralName signerName,
                                                                         byte[] senderKid)
                                                                  throws org.bouncycastle.cert.cmp.CMPException
        Throws:
        org.bouncycastle.cert.cmp.CMPException
      • isImplicitConfirm

        public static boolean isImplicitConfirm​(org.bouncycastle.asn1.cmp.PKIHeader header)
      • getImplicitConfirmGeneralInfo

        public static org.bouncycastle.asn1.cmp.InfoTypeAndValue getImplicitConfirmGeneralInfo()
      • extractUtf8Pairs

        public static CmpUtf8Pairs extractUtf8Pairs​(org.bouncycastle.asn1.cmp.InfoTypeAndValue[] generalInfo)
      • extractCertProfile

        public static java.lang.String[] extractCertProfile​(org.bouncycastle.asn1.cmp.InfoTypeAndValue[] generalInfo)
      • extractUtf8Pairs

        public static CmpUtf8Pairs extractUtf8Pairs​(org.bouncycastle.asn1.crmf.AttributeTypeAndValue[] atvs)
      • buildInfoTypeAndValue

        public static org.bouncycastle.asn1.cmp.InfoTypeAndValue buildInfoTypeAndValue​(CmpUtf8Pairs utf8Pairs)
      • buildAttributeTypeAndValue

        public static org.bouncycastle.asn1.crmf.AttributeTypeAndValue buildAttributeTypeAndValue​(CmpUtf8Pairs utf8Pairs)