class AthenzUtils {

    public static String extractRoleName(final String roleName) {
        int idx = roleName.indexOf(AuthorityConsts.ROLE_SEP);
        if (idx == -1 || idx == 0 || idx == roleName.length() - AuthorityConsts.ROLE_SEP.length()) {
            return null;
        } else {
            return roleName.substring(idx + AuthorityConsts.ROLE_SEP.length());
        }
    }

    private  AthenzUtils();

}