Search in sources :

Example 1 with DistinguishedNameParser

use of javax.net.ssl.DistinguishedNameParser in project robovm by robovm.

the class DistinguishedNameParserTest method assertFirstCn.

private void assertFirstCn(String dn, String expected) {
    X500Principal principal = new X500Principal(dn);
    assertEquals(dn, expected, new DistinguishedNameParser(principal).findMostSpecific("cn"));
}
Also used : X500Principal(javax.security.auth.x500.X500Principal) DistinguishedNameParser(javax.net.ssl.DistinguishedNameParser)

Aggregations

DistinguishedNameParser (javax.net.ssl.DistinguishedNameParser)1 X500Principal (javax.security.auth.x500.X500Principal)1