Java Second Get getSecondRDNValue(String dn)

Here you can find the source of getSecondRDNValue(String dn)

Description

Get the Second RDN Value

License

MIT License

Parameter

Parameter Description
dn The DN stored in another attribute

Return

The first RDN

Declaration

public static String getSecondRDNValue(String dn) 

Method Source Code

//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];

    }
}

Related

  1. getSecondFromTime(int hour, int minute, int second)
  2. getSecondInt(long c)
  3. getSecondInt(long time)
  4. getSecondMaxInArray(float[] arr)
  5. getSecondName(String names)
  6. getSecondRulePart()
  7. getSeconds()
  8. getSeconds(double coordinate)
  9. getSeconds(double seconds)