pdfcertificate-ag凯发旗舰厅



com.spire.pdf.security
class pdfcertificate

java.lang.object
  extended by com.spire.ms.system.security.cryptography.x509certificates.x509certificate
      extended by com.spire.ms.system.security.cryptography.x509certificates.x509certificate2
          extended by com.spire.pdf.security.pdfcertificate

public class pdfcertificate
extends com.spire.ms.system.security.cryptography.x509certificates.x509certificate2

represents the certificate object.


constructor summary
pdfcertificate(byte[] signdata)
          signature data
pdfcertificate(byte[] signdata, java.lang.string password)
          signature data
pdfcertificate(java.lang.string pfxpath, java.lang.string password)
          creates new pdfcertificate from pfx file.
pdfcertificate(java.lang.string pfxpath, java.lang.string password, int storageflags)
           
 
method summary
 com.spire.ms.system.security.cryptography.x509certificates.x500distinguishedname get_issuername()
          gets the certificate issuer's name.
static pdfcertificate[] getcertificates()
          gets the certificates in all storages
 java.lang.string getissuer()
          get certificate instance
 java.lang.string getnameinfo(x509nametype nametype, boolean forissuer)
          always return string.empty for upnname, dnsfromalternativename and urlname
 void setfriendlyname(java.lang.string value)
          sets friendly name
 boolean verify()
          by default this depends on the incomplete x509chain
 
constructor detail

pdfcertificate

public pdfcertificate(java.lang.string pfxpath,
                      java.lang.string password)
creates new pdfcertificate from pfx file.
parameters:
pfxpath - the path to pfx file.
password - the password for pfx file.

pdfcertificate

public pdfcertificate(java.lang.string pfxpath,
                      java.lang.string password,
                      int storageflags)
parameters:
pfxpath -
password -
storageflags - x509keystorageflags

pdfcertificate

public pdfcertificate(byte[] signdata)
signature data
parameters:
signdata - the data to pfx file.

pdfcertificate

public pdfcertificate(byte[] signdata,
                      java.lang.string password)
signature data
parameters:
signdata - the data to pfx file.
password - the password for pfx file.
method detail

get_issuername

public com.spire.ms.system.security.cryptography.x509certificates.x500distinguishedname get_issuername()
gets the certificate issuer's name.
overrides:
get_issuername in class com.spire.ms.system.security.cryptography.x509certificates.x509certificate2
returns:
the certificate issuer's name.

getcertificates

public static pdfcertificate[] getcertificates()
gets the certificates in all storages
returns:
pdfcertificate array.

verify

public boolean verify()
by default this depends on the incomplete x509chain
overrides:
verify in class com.spire.ms.system.security.cryptography.x509certificates.x509certificate2
returns:
verify sucess flag.

getissuer

public java.lang.string getissuer()
get certificate instance
overrides:
getissuer in class com.spire.ms.system.security.cryptography.x509certificates.x509certificate
returns:
issuer

getnameinfo

public java.lang.string getnameinfo(x509nametype nametype,
                                    boolean forissuer)
always return string.empty for upnname, dnsfromalternativename and urlname
parameters:
nametype - x509nametype
forissuer - forissuer
returns:
name info

setfriendlyname

public void setfriendlyname(java.lang.string value)
sets friendly name
overrides:
setfriendlyname in class com.spire.ms.system.security.cryptography.x509certificates.x509certificate2
parameters:
value -


网站地图