org.metastatic.jessie

Class StaticTrustAnchors

Implemented Interfaces:
ManagerFactoryParameters

public class StaticTrustAnchors
extends java.lang.Object
implements ManagerFactoryParameters

This class implements a simple set of trust anchors suitable for initializing a TrustManagerFactory for the "JessieX509" algorithm.

The important field of this class is the CA_CERTS constant, which contains an array of commonly accepted CA certificates.

Field Summary

static StaticTrustAnchors
CA_CERTS
A list of known certificate authority certificates.

Constructor Summary

StaticTrustAnchors(X509Certificate[] certs)

Method Summary

static X509Certificate
generate(CertificateFactory factory, String encoded)
X509Certificate[]
getCertificates()

Field Details

CA_CERTS

public static final StaticTrustAnchors CA_CERTS
A list of known certificate authority certificates. This set of certificates is the same as the default CA certificates used by Mozilla.

Constructor Details

StaticTrustAnchors

public StaticTrustAnchors(X509Certificate[] certs)

Method Details

generate

public static X509Certificate generate(CertificateFactory factory,
                                       String encoded)

getCertificates

public X509Certificate[] getCertificates()