public final class DSSRevocationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.cert.ocsp.OCSPResp |
fromBasicToResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
Convert a BasicOCSPResp in OCSPResp (connection status is set to
SUCCESSFUL).
|
static org.bouncycastle.cert.ocsp.OCSPResp |
fromBasicToResp(byte[] basicOCSPRespBinary)
Convert a BasicOCSPResp in OCSPResp (connection status is set to
SUCCESSFUL).
|
static org.bouncycastle.cert.ocsp.BasicOCSPResp |
fromRespToBasic(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
Convert a OCSPResp in a BasicOCSPResp
|
static byte[] |
getEncoded(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) |
static org.bouncycastle.cert.ocsp.CertificateID |
getOCSPCertificateID(CertificateToken cert,
CertificateToken issuerCert)
Returns the
CertificateID for the given certificate and its
issuer's certificate. |
static org.bouncycastle.operator.DigestCalculator |
getSHA1DigestCalculator() |
static org.bouncycastle.cert.ocsp.BasicOCSPResp |
loadOCSPBase64Encoded(String base64Encoded)
This method loads an OCSP response from the given base 64 encoded string.
|
static boolean |
matches(org.bouncycastle.cert.ocsp.CertificateID certId,
org.bouncycastle.cert.ocsp.SingleResp singleResp)
fix for certId.equals methods that doesn't work very well.
|
public static org.bouncycastle.cert.ocsp.BasicOCSPResp fromRespToBasic(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
ocspResp - the OCSPResp to be converted to BasicOCSPResppublic static org.bouncycastle.cert.ocsp.OCSPResp fromBasicToResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
basicOCSPResp - the BasicOCSPResp to be converted to OCSPResppublic static org.bouncycastle.cert.ocsp.OCSPResp fromBasicToResp(byte[] basicOCSPRespBinary)
basicOCSPRespBinary - the binary of BasicOCSPResppublic static boolean matches(org.bouncycastle.cert.ocsp.CertificateID certId,
org.bouncycastle.cert.ocsp.SingleResp singleResp)
certId - CertificateIDsingleResp - SingleRespSingleResppublic static org.bouncycastle.cert.ocsp.CertificateID getOCSPCertificateID(CertificateToken cert, CertificateToken issuerCert)
CertificateID for the given certificate and its
issuer's certificate.cert - CertificateToken for which the id is createdissuerCert - CertificateToken issuer certificate of the certCertificateIDpublic static org.bouncycastle.operator.DigestCalculator getSHA1DigestCalculator()
public static org.bouncycastle.cert.ocsp.BasicOCSPResp loadOCSPBase64Encoded(String base64Encoded) throws IOException
base64Encoded - base 64 encoded OCSP responseBasicOCSPResp objectIOException - if IO error occurredpublic static byte[] getEncoded(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
Copyright © 2019. All rights reserved.