Here you can find the source of identityToSubject(String identity)
public static String identityToSubject(String identity)
//package com.java2s; //License from project: Open Source License public class Main { public static String identityToSubject(String identity) { if (identity != null) { String s = identity.substring(1); return s.replace('/', ','); } else {/*from w ww .java2s .c o m*/ return null; } } }