Here you can find the source of getSecondRDNValue(String dn)
Parameter | Description |
---|---|
dn | The DN stored in another attribute |
public static String getSecondRDNValue(String dn)
//package com.java2s; /*/* www . j a v a 2s . com*/ * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ public class Main { /** * Get the Second RDN Value * * @param dn * The DN stored in another attribute * @return The first RDN */ public static String getSecondRDNValue(String dn) { if (dn == null) { return null; } String rdn = dn.split(",")[1]; return rdn.split("=")[1]; } }