¡@

Home 

java Programming Glossary: dn

How to extract CN from X509Certificate in Java?

http://stackoverflow.com/questions/2914521/how-to-extract-cn-from-x509certificate-in-java

certificates and want to extract the CN from the SubjectDN from the client's X509Certificate . At the moment I call cert.getSubjectX500Principal.. .getName but this of course gives me the total formatted DN of the client. For some reason I am just interested in the CN.. I am just interested in the CN theclient part of the DN. Is there a way to extract this part of the DN without parsing..

Java LDAP - Determine if user in a given group?

http://stackoverflow.com/questions/570466/java-ldap-determine-if-user-in-a-given-group

DC DOMAIN DC com String groupDistinguishedName DN CN DLS APP MyAdmin C OU DLS File Permissions DC DOMAIN DC com.. memberOf.getAll e1.hasMoreElements String unprocessedGroupDN e1.nextElement .toString String unprocessedGroupCN getCN unprocessedGroupDN.. .toString String unprocessedGroupCN getCN unprocessedGroupDN Quick check for direct membership if isSame groupCN unprocessedGroupCN..

Sign CSR using Bouncy Castle

http://stackoverflow.com/questions/7230330/sign-csr-using-bouncy-castle

It worked for me. The cert I generated correctly had the DN info I needed. Wikipedia has a killer section on PKCS http en.wikipedia.org..