Package se.idsec.utils.printcert.utils
Class CertUtils
- java.lang.Object
-
- se.idsec.utils.printcert.utils.CertUtils
-
public class CertUtils extends Object
- Author:
- stefan
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<SubjectAttributeInfo>getAttributeInfoList(X500Principal name)static List<ExtensionInfo>getExtensions(byte[] certBytes)static List<ExtensionInfo>getExtensions(X509Certificate cert)static List<ExtensionInfo>getExtensions(X509CertificateHolder cert)static byte[]getPKCS7(List<PrintCertificate> certList)static SubjectPublicKeyInfogetPublicKeyInfo(PublicKey publicKey)static org.bouncycastle.operator.DigestCalculatorgetSha1DigestCalculator()static Map<SubjectDnType,SubjectAttributeInfo>getSubjectDnAttributeMap(List<SubjectAttributeInfo> attrList)static List<String>getTextLines(String text)static PolicyQualifierInfogetUserNotice(String noticeText)static X509ExtensionUtilsgetX509ExtensionUtils()
-
-
-
Method Detail
-
getExtensions
public static List<ExtensionInfo> getExtensions(X509Certificate cert) throws CertificateEncodingException
- Throws:
CertificateEncodingException
-
getExtensions
public static List<ExtensionInfo> getExtensions(X509CertificateHolder cert) throws CertificateEncodingException, IOException
-
getExtensions
public static List<ExtensionInfo> getExtensions(byte[] certBytes)
-
getSha1DigestCalculator
public static org.bouncycastle.operator.DigestCalculator getSha1DigestCalculator() throws org.bouncycastle.operator.OperatorCreationException- Throws:
org.bouncycastle.operator.OperatorCreationException
-
getX509ExtensionUtils
public static X509ExtensionUtils getX509ExtensionUtils() throws org.bouncycastle.operator.OperatorCreationException
- Throws:
org.bouncycastle.operator.OperatorCreationException
-
getSubjectDnAttributeMap
public static Map<SubjectDnType,SubjectAttributeInfo> getSubjectDnAttributeMap(List<SubjectAttributeInfo> attrList)
-
getAttributeInfoList
public static List<SubjectAttributeInfo> getAttributeInfoList(X500Principal name)
-
getUserNotice
public static PolicyQualifierInfo getUserNotice(String noticeText)
-
getPKCS7
public static byte[] getPKCS7(List<PrintCertificate> certList) throws CMSException, IOException
- Throws:
CMSExceptionIOException
-
getPublicKeyInfo
public static SubjectPublicKeyInfo getPublicKeyInfo(PublicKey publicKey)
-
-