static private String generateTokenID(String resource){
  if (StringUtils.isBlank(resource)) {
    return null;
  }
  return Hash.hash(resource + RandomStringUtils.randomAlphanumeric(32));
}

static private String generateTokenID ( String resource ) { if ( StringUtils . isBlank ( resource ) ) { return null ; } return Hash . hash ( resource + RandomStringUtils . randomAlphanumeric ( 32 ) ) ; }
generates a secure hash to use as token id
