static String pidListKey(List<String> allJmxAclPids, ObjectName objectName) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        List<String> pidCandidates = iterateDownPids(nameSegments(objectName));

        MessageDigest md = MessageDigest.getInstance("MD5");
        for (String pc : pidCandidates) {
            String generalPid = getGeneralPid(allJmxAclPids, pc);
            if (generalPid.length() > 0) {
                md.update(generalPid.getBytes("UTF-8"));
            }
        }
        return Hex.encodeHexString(md.digest());
    }
static String pidListKey ( List < String > allJmxAclPids , ObjectName objectName ) throws NoSuchAlgorithmException , UnsupportedEncodingException { List < String > pidCandidates = iterateDownPids ( nameSegments ( objectName ) ) ; MessageDigest md = MessageDigest . getInstance ( "MD5" ) ; for ( String pc : pidCandidates ) { String generalPid = getGeneralPid ( allJmxAclPids , pc ) ; if ( generalPid . length ( ) > 0 ) { md . update ( generalPid . getBytes ( "UTF-8" ) ) ; } } return Hex . encodeHexString ( md . digest ( ) ) ; }
Converts {@link ObjectName} to a key that helps verifying whether different MBeans
can produce same RBAC info
@param allJmxAclPids
@param objectName
@return