public class CertificateService extends Object
| Constructor and Description |
|---|
CertificateService() |
public static final String OCSP
public X509Certificate createFromB64(byte[] certB64) throws CertificateException
CertificateExceptionpublic List<X509Certificate> getIntermCaList() throws Exception
Exceptionpublic List<X509Certificate> getTrustAnchorList() throws Exception
Exceptionpublic OperationStatus isValidForSign(Date refDate, X509Certificate cert) throws Exception, IOException, CertificateException, CRLException, UndefStateException, RevokedException
public Map<String,String> parseChainAsMap(List<X509Certificate> chain)
public OperationStatus isValid(Date refDate, X509Certificate cert) throws Exception, IOException, CertificateException, CRLException, UndefStateException, RevokedException
public OperationStatus isValid(Date refDate, X509Certificate cert, boolean verifyRevoke) throws Exception, IOException, CertificateException, CRLException, UndefStateException, RevokedException
public List<X509Certificate> buildPath(X509Certificate signerCert) throws Exception
Exceptionpublic List<X509Certificate> decode(byte[] encoded) throws CertificateException, IOException, CRLException
public X509Certificate decodeEE(byte[] encoded) throws CertificateException, IOException, CRLException
public static List<X509Certificate> buildPathUsingAIA(X509Certificate signer) throws Exception
Exceptionpublic static boolean isRoot(X509Certificate cert)
public static String getAIA(X509Certificate cert) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static Map<String,String> getAIAComplete(byte[] ext) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static List<String> getCrlDistributionPoints(X509Certificate cert) throws CertificateParsingException, IOException
public static List<String> getCrlDistributionPoints(byte[] crldpExt) throws CertificateParsingException, IOException
public static Map<String,String> getCertPolicies(byte[] certPols, int index) throws CertificateParsingException, IOException
Copyright © 2020. All rights reserved.