com.adobe.flashaccess.sdk.cert
Class CertificateFactory

java.lang.Object
  extended by com.adobe.flashaccess.sdk.cert.CertificateFactory

public class CertificateFactory
extends java.lang.Object

This class contains utilities for loading certificates.


Method Summary
static java.security.cert.X509Certificate loadCert(java.io.InputStream in)
          Load an X.509 DER encoded certificate in binary or Base64 format from an input stream.
static java.security.cert.X509Certificate[] loadCerts(java.io.InputStream in)
          Loads all X.509 DER encoded certificates in binary or Base64 format from an input stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadCert

public static java.security.cert.X509Certificate loadCert(java.io.InputStream in)
                                                   throws java.security.cert.CertificateException
Load an X.509 DER encoded certificate in binary or Base64 format from an input stream.

Parameters:
in - The certificate.
Returns:
The X.509 DER encoded certificate.
Throws:
java.security.cert.CertificateException - if the certificate cannot be parsed.

loadCerts

public static java.security.cert.X509Certificate[] loadCerts(java.io.InputStream in)
                                                      throws java.security.cert.CertificateException
Loads all X.509 DER encoded certificates in binary or Base64 format from an input stream.

Parameters:
in - One or more certificates.
Returns:
The X.509 DER encoded certificates.
Throws:
java.security.cert.CertificateException - if the certificates cannot be parsed.


[an error occurred while processing this directive] [an error occurred while processing this directive]