}
public void test08AltNameP10() throws Exception {
// P10 generated with openssl
PKCS10RequestMessage msg = new PKCS10RequestMessage(altnamep10);
boolean ret = msg.verify();
assertTrue(ret);
String dn = msg.getRequestDN();
assertEquals("C=AU,CN=asd,E=asd@sdf.se", dn);
String pwd = msg.getPassword();
assertEquals("dsfsdf", pwd);
String username = msg.getUsername();
assertEquals("asd", username);
PublicKey pk = msg.getRequestPublicKey();
assertNotNull(pk);
String alg = pk.getAlgorithm();
assertEquals("RSA",alg);
// Get altNames if we can find them
String altNames = msg.getRequestAltNames();
assertEquals("rfc822name=foo@bar.se",altNames);
}