Package org.xipki.scep.util
Class ScepUtil
- java.lang.Object
-
- org.xipki.scep.util.ScepUtil
-
public class ScepUtil extends java.lang.ObjectSCEP 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 java.util.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 java.lang.StringgetSignatureAlgName(java.security.Key key, org.xipki.security.HashAlgo hashAlgo)static java.time.InstantgetTime(java.lang.Object obj)
-
-
-
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.CertificateEncodingExceptionorg.bouncycastle.cms.CMSException
-
getTime
public static java.time.Instant getTime(java.lang.Object obj)
-
-