Package org.xipki.scep.util
Class ScepUtil
- java.lang.Object
-
- org.xipki.scep.util.ScepUtil
-
public class ScepUtil extends Object
SCEP utility class.- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCmsCertSet(org.bouncycastle.cms.CMSSignedDataGenerator generator, org.xipki.security.X509Cert[] cmsCertSet)static List<org.xipki.security.X509Cert>getCertsFromSignedData(org.bouncycastle.asn1.cms.SignedData signedData)static org.bouncycastle.cert.X509CRLHoldergetCrlFromPkiMessage(org.bouncycastle.asn1.cms.SignedData signedData)static org.bouncycastle.asn1.ASN1EncodablegetFirstAttrValue(org.bouncycastle.asn1.cms.AttributeTable attrs, org.bouncycastle.asn1.ASN1ObjectIdentifier type)static StringgetSignatureAlgName(Key key, org.xipki.security.HashAlgo hashAlgo)static InstantgetTime(Object obj)
-
-
-
Method Detail
-
getCertsFromSignedData
public static List<org.xipki.security.X509Cert> getCertsFromSignedData(org.bouncycastle.asn1.cms.SignedData signedData) throws CertificateException
- Throws:
CertificateException
-
getCrlFromPkiMessage
public static org.bouncycastle.cert.X509CRLHolder getCrlFromPkiMessage(org.bouncycastle.asn1.cms.SignedData signedData) throws CRLException- Throws:
CRLException
-
getSignatureAlgName
public static String getSignatureAlgName(Key key, org.xipki.security.HashAlgo hashAlgo) throws NoSuchAlgorithmException
- Throws:
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 CertificateEncodingException, org.bouncycastle.cms.CMSException- Throws:
CertificateEncodingExceptionorg.bouncycastle.cms.CMSException
-
-