DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Certificate

java.lang.Object
  extended by com.cete.dynamicpdf.Certificate

public class Certificate
extends java.lang.Object

Represents a digital certificate.

Licensing:
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:


Constructor Summary
Certificate(java.lang.String certificatePath, java.lang.String password)
          Intializes a new instance of a Certificate from the given file.
 
Method Summary
 java.lang.String getIssuer()
          Gets the complete issuer string from the certificate loaded.
 java.security.PrivateKey getPrivateKey()
          Gets the PrivateKey from the KeyStore.
 boolean getSignSilently()
          Get to prompt for the selection of a signing Certificate.
 java.lang.String getSubject()
          Gets the complete subject string from the certificate loaded.
 java.lang.String getTimestampServerUrl()
          Get the Timestamp Server Url from the certificate loaded.
 void setSignSilently(boolean value)
          Sets to prompt for the selection of a signing Certificate.
 java.lang.String subjectName()
          Gets the subject name of the certificate loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Certificate

public Certificate(java.lang.String certificatePath,
                   java.lang.String password)
            throws java.io.FileNotFoundException
Intializes a new instance of a Certificate from the given file.

Throws:
java.io.FileNotFoundException - If the file does not exist in the specified path.
GeneratorException - in case of unsupported signature algorithms, any KeyStore exception, a key in the KeyStore cannot be recovered, failed or interrupted I/O operations, or any certificate problem.
Parameters:
certificatePath - Physical file path to a digital certificate with private key.
password - Password for the certificate.
Method Detail

getPrivateKey

public java.security.PrivateKey getPrivateKey()
Gets the PrivateKey from the KeyStore.

Returns:
the PrivateKey from the KeyStore.

subjectName

public java.lang.String subjectName()
Gets the subject name of the certificate loaded.

Returns:
the subject name of the certificate loaded.

getSubject

public java.lang.String getSubject()
Gets the complete subject string from the certificate loaded.

Returns:
the complete subject string from the certificate loaded.

getIssuer

public java.lang.String getIssuer()
Gets the complete issuer string from the certificate loaded.

Returns:
the complete issuer string from the certificate loaded.

getTimestampServerUrl

public java.lang.String getTimestampServerUrl()
Get the Timestamp Server Url from the certificate loaded.

Returns:
the Timestamp Server Url from the certificate loaded.

getSignSilently

public boolean getSignSilently()
Get to prompt for the selection of a signing Certificate.

Returns:
prompt for the selection of a signing Certificate.

setSignSilently

public void setSignSilently(boolean value)
Sets to prompt for the selection of a signing Certificate.

Parameters:
value - prompt for the selection of a signing Certificate.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software