private static X500Name buildDistinguishedName ( X509Metadata metadata ) { X500NameBuilder dnBuilder = new X500NameBuilder ( BCStyle . INSTANCE ) ; setOID ( dnBuilder , metadata , "C" , null ) ; setOID ( dnBuilder , metadata , "ST" , null ) ; setOID ( dnBuilder , metadata , "L" , null ) ; setOID ( dnBuilder , metadata , "O" , "Fathom" ) ; setOID ( dnBuilder , metadata , "OU" , "Fathom" ) ; setOID ( dnBuilder , metadata , "E" , metadata . emailAddress ) ; setOID ( dnBuilder , metadata , "CN" , metadata . commonName ) ; X500Name dn = dnBuilder . build ( ) ; return dn ; }
Builds a distinguished name from the X509Metadata .