Example usage for org.bouncycastle.asn1.x509 Certificate getIssuer

List of usage examples for org.bouncycastle.asn1.x509 Certificate getIssuer

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x509 Certificate getIssuer.

Prototype

public X500Name getIssuer() 

Source Link

Usage

From source file:org.xipki.pki.scep.client.shell.GetCrlCmd.java

License:Open Source License

@Override
protected Object doExecute() throws Exception {
    Certificate cert = Certificate.getInstance(IoUtil.read(certFile));
    ScepClient client = getScepClient();
    X509CRL crl = client.scepGetCrl(getIdentityKey(), getIdentityCert(), cert.getIssuer(),
            cert.getSerialNumber().getPositiveValue());
    if (crl == null) {
        throw new CmdFailure("received no CRL from server");
    }//from  w ww  .java  2  s .co  m

    saveVerbose("saved CRL to file", new File(outputFile), crl.getEncoded());
    return null;
}