org.jscep.client
Class Client

java.lang.Object
  extended by org.jscep.client.Client

public class Client
extends Object

This class represents a SCEP client, or Requester.


Nested Class Summary
static class Client.Builder
          This class is used for building immutable instances of the Client class.
 
Method Summary
 Transaction createTransaction()
          Creates a new transaction for a PKIOperation.
 Capabilities getCaCapabilities()
          Retrieves the set of SCEP capabilities from the CA.
 List<X509Certificate> getCaCertificate()
          Retrieves the CA certificate.
 List<X509Certificate> getRolloverCertificate()
          Retrieves the "rollover" certificate to be used by the CA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTransaction

public Transaction createTransaction()
                              throws IOException
Creates a new transaction for a PKIOperation.

Returns:
a new transaction.
Throws:
IOException

getCaCapabilities

public Capabilities getCaCapabilities()
                               throws IOException
Retrieves the set of SCEP capabilities from the CA.

Returns:
the capabilities of the server.
Throws:
IOException - if any I/O error occurs.

getCaCertificate

public List<X509Certificate> getCaCertificate()
                                       throws IOException
Retrieves the CA certificate.

If the CA is using an RA, the RA certificate will also be present in the returned list.

Returns:
the list of certificates.
Throws:
IOException - if any I/O error occurs.

getRolloverCertificate

public List<X509Certificate> getRolloverCertificate()
                                             throws IOException
Retrieves the "rollover" certificate to be used by the CA.

If the CA is using an RA, the RA certificate will be present in the returned list.

Returns:
the list of certificates.
Throws:
IOException - if any I/O error occurs.


Copyright © 2010. All Rights Reserved.