Class ScepUtil


  • public class ScepUtil
    extends java.lang.Object
    SCEP utility class.
    Author:
    Lijun Liao (xipki)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addCmsCertSet​(org.bouncycastle.cms.CMSSignedDataGenerator generator, org.xipki.security.X509Cert[] cmsCertSet)  
      static java.util.List<org.xipki.security.X509Cert> getCertsFromSignedData​(org.bouncycastle.asn1.cms.SignedData signedData)  
      static org.bouncycastle.cert.X509CRLHolder getCrlFromPkiMessage​(org.bouncycastle.asn1.cms.SignedData signedData)  
      static org.bouncycastle.asn1.ASN1Encodable getFirstAttrValue​(org.bouncycastle.asn1.cms.AttributeTable attrs, org.bouncycastle.asn1.ASN1ObjectIdentifier type)  
      static java.lang.String getSignatureAlgName​(java.security.Key key, org.xipki.security.HashAlgo hashAlgo)  
      static java.time.Instant getTime​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

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

      • getCertsFromSignedData

        public static java.util.List<org.xipki.security.X509Cert> getCertsFromSignedData​(org.bouncycastle.asn1.cms.SignedData signedData)
                                                                                  throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException
      • getCrlFromPkiMessage

        public static org.bouncycastle.cert.X509CRLHolder getCrlFromPkiMessage​(org.bouncycastle.asn1.cms.SignedData signedData)
                                                                        throws java.security.cert.CRLException
        Throws:
        java.security.cert.CRLException
      • getSignatureAlgName

        public static java.lang.String getSignatureAlgName​(java.security.Key key,
                                                           org.xipki.security.HashAlgo hashAlgo)
                                                    throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException
      • getFirstAttrValue

        public static org.bouncycastle.asn1.ASN1Encodable getFirstAttrValue​(org.bouncycastle.asn1.cms.AttributeTable attrs,
                                                                            org.bouncycastle.asn1.ASN1ObjectIdentifier type)
      • addCmsCertSet

        public static void addCmsCertSet​(org.bouncycastle.cms.CMSSignedDataGenerator generator,
                                         org.xipki.security.X509Cert[] cmsCertSet)
                                  throws java.security.cert.CertificateEncodingException,
                                         org.bouncycastle.cms.CMSException
        Throws:
        java.security.cert.CertificateEncodingException
        org.bouncycastle.cms.CMSException
      • getTime

        public static java.time.Instant getTime​(java.lang.Object obj)