FileDocCategorySizeDatePackage
CertificatesToPlayWith.javaAPI DocAndroid 1.5 API30420Wed May 06 22:41:06 BST 2009tests.api.javax.net.ssl

CertificatesToPlayWith

public interface CertificatesToPlayWith
Some X509 certificates to test against.

Note: some of these certificates have Japanese Kanji in the "subjectAlt" field (UTF8). Not sure how realistic that is since international characters in DNS names usually get translated into ASCII using "xn--" style DNS entries. "xn--i8s592g.co.jp" is what FireFox actually uses when trying to find 花子.co.jp. So would the CN in the certificate contain "xn--i8s592g.co.jp" in ASCII, or "花子.co.jp" in UTF8? (Both?)

since
11-Dec-2006

Fields Summary
public static final byte[]
X509_FOO
CN=foo.com
public static final byte[]
X509_HANAKO
CN=花子.co.jp
public static final byte[]
X509_FOO_BAR
CN=foo.com, subjectAlt=bar.com
public static final byte[]
X509_FOO_BAR_HANAKO
CN=foo.com, subjectAlt=bar.com, subjectAlt=花子.co.jp (hanako.co.jp in kanji)
public static final byte[]
X509_WILD_FOO
CN=*.foo.com
public static final byte[]
X509_WILD_CO_JP
CN=*.co.jp
public static final byte[]
X509_WILD_FOO_BAR_HANAKO
CN=*.foo.com, subjectAlt=*.bar.com, subjectAlt=*.花子.co.jp (*.hanako.co.jp in kanji)
public static final byte[]
X509_THREE_CNS_FOO_BAR_HANAKO
CN=foo.com, CN=bar.com, CN=花子.co.jp
public static final byte[]
X509_NO_CNS_FOO
subjectAlt=foo.com
public static final byte[]
X509_INTERMEDIATE_CA
Intermediate CA for all of these.
public static final byte[]
X509_ROOT_CA
Root CA for all of these.
public static final String
RSA_PUBLIC_MODULUS
Below is the private key for all the server certificates above (but not the intermediate CA or the root CA). All of those server certs came from the same private key.
public static final String
RSA_PUBLIC_EXPONENT
public static final String
RSA_PRIVATE_EXPONENT
public static final String
RSA_PRIME1
public static final String
RSA_PRIME2
public static final String
RSA_EXPONENT1
public static final String
RSA_EXPONENT2
public static final String
RSA_COEFFICIENT
public static final byte[]
X509_MULTIPLE_SUBJECT_ALT
subjectAlt=IP Address:127.0.0.1, email:oleg@ural.ru, DNS:localhost.localdomain
Constructors Summary
Methods Summary